git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35276
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_pointSize = pointSize;
#ifdef __WXGTK20__
m_pointSize = pointSize;
#ifdef __WXGTK20__
- // Get native info
- PangoFontDescription *desc = m_nativeFontInfo.description;
-
- pango_font_description_set_size( desc, m_pointSize * PANGO_SCALE );
+ m_nativeFontInfo.SetPointSize(pointSize);
#else
if ( HasNativeFont() )
{
#else
if ( HasNativeFont() )
{
+#ifdef __WXGTK20__
+ m_nativeFontInfo.SetFaceName(facename);
+#else
if ( HasNativeFont() )
{
m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);
if ( HasNativeFont() )
{
m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);
m_pointSize = pointSize;
#ifdef __WXGTK20__
m_pointSize = pointSize;
#ifdef __WXGTK20__
- // Get native info
- PangoFontDescription *desc = m_nativeFontInfo.description;
-
- pango_font_description_set_size( desc, m_pointSize * PANGO_SCALE );
+ m_nativeFontInfo.SetPointSize(pointSize);
#else
if ( HasNativeFont() )
{
#else
if ( HasNativeFont() )
{
+#ifdef __WXGTK20__
+ m_nativeFontInfo.SetFaceName(facename);
+#else
if ( HasNativeFont() )
{
m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);
if ( HasNativeFont() )
{
m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);
-void wxNativeFontInfo::SetPointSize(int WXUNUSED(pointsize))
+void wxNativeFontInfo::SetPointSize(int pointsize)
- wxFAIL_MSG( _T("not implemented") );
+ pango_font_description_set_size( description, pointsize * PANGO_SCALE );
}
void wxNativeFontInfo::SetStyle(wxFontStyle style)
}
void wxNativeFontInfo::SetStyle(wxFontStyle style)
wxFAIL_MSG( _T("not implemented") );
}
wxFAIL_MSG( _T("not implemented") );
}
-void wxNativeFontInfo::SetFaceName(wxString WXUNUSED(facename))
+void wxNativeFontInfo::SetFaceName(wxString facename)
- wxFAIL_MSG( _T("not implemented") );
+ pango_font_description_set_family( description, wxGTK_CONV(facename) );
}
void wxNativeFontInfo::SetFamily(wxFontFamily WXUNUSED(family))
}
void wxNativeFontInfo::SetFamily(wxFontFamily WXUNUSED(family))