]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/font.cpp
the same event handler class, not object, can be used with multiple windows (patch...
[wxWidgets.git] / src / gtk / font.cpp
index e355db0f1c7dbfe822772cb7d72fbefe8f0a5f30..94cc8e66d5f6e10f0bd29d7444f2d11ae0429448 100644 (file)
@@ -157,6 +157,8 @@ void wxFontRefData::Init(int pointSize,
 
     m_underlined = underlined;
     m_encoding = encoding;
+    if ( m_encoding == wxFONTENCODING_DEFAULT )
+        m_encoding = wxFont::GetDefaultEncoding();
 
     m_noAA = false;
 
@@ -201,7 +203,7 @@ void wxFontRefData::InitFromNative()
     PangoFontDescription *desc = m_nativeFontInfo.description;
 
     // init fields
-    m_faceName = wxGTK_CONV_BACK( pango_font_description_get_family( desc ) );
+    m_faceName = wxGTK_CONV_BACK_SYS(pango_font_description_get_family(desc));
 
     // Pango sometimes needs to have a size
     int pango_size = pango_font_description_get_size( desc );