From 69ffc7b2061af028f8248a7f011229bd6ee2179b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 9 Jun 2005 09:37:28 +0000 Subject: [PATCH] Allow native font specification git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/font.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/x11/font.cpp b/src/x11/font.cpp index 5018bc39ed..573951a98b 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -883,6 +883,8 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const node = node->GetNext(); } + wxString xFontName = M_FONTDATA->m_nativeFontInfo.GetXFontName(); + // not found, create a new one XFontStruct *font = (XFontStruct *) wxLoadQueryNearestFont(pointSize, @@ -891,7 +893,8 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const M_FONTDATA->m_weight, M_FONTDATA->m_underlined, wxT(""), - M_FONTDATA->m_encoding); + M_FONTDATA->m_encoding, + & xFontName); if ( !font ) { -- 2.45.2