]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use native font always.
authorJulian Smart <julian@anthemion.co.uk>
Fri, 10 Jun 2005 14:57:11 +0000 (14:57 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 10 Jun 2005 14:57:11 +0000 (14:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/font.cpp

index 573951a98bf40afc43d57adaf0f104713bf214e8..783a009b74bffc37a1a3257efdbd7781051a30d8 100644 (file)
@@ -884,6 +884,9 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
     }
 
     wxString xFontName = M_FONTDATA->m_nativeFontInfo.GetXFontName();
+    if (xFontName == "-*-*-*-*-*--*-*-*-*-*-*-*-*")
+      // wxFont constructor not called with native font info parameter => take M_FONTDATA values
+      xFontName.Clear();
     
     // not found, create a new one
     XFontStruct *font = (XFontStruct *)