wxFont::wxFont(const wxNativeFontInfo& info) { Create( info.GetPointSize(), info.GetFamily(), info.GetStyle(), info.GetWeight(), info.GetUnderlined(), info.GetFaceName(), info.GetEncoding() ); if ( info.GetStrikethrough() ) SetStrikethrough(true); }
void wxNativeFontInfo::Init(const wxNativeFontInfo& info) { if (info.description) { description = pango_font_description_copy(info.description); m_underlined = info.GetUnderlined(); m_strikethrough = info.GetStrikethrough(); } else { description = NULL; m_underlined = false; m_strikethrough = false; } }
wxFont::wxFont(const wxNativeFontInfo& info) { #if wxUSE_UNICODE Create( info.GetPointSize(), info.GetFamily(), info.GetStyle(), info.GetWeight(), info.GetUnderlined(), info.GetFaceName(), info.GetEncoding() ); if ( info.GetStrikethrough() ) SetStrikethrough(true); #else (void) Create(info.GetXFontName()); #endif }