const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { wxCHECK_MSG( Ok(), NULL, wxT("invalid font") ); if(M_FONTDATA->m_nativeFontInfo.GetXFontName().empty()) GetInternalFont(); return &(M_FONTDATA->m_nativeFontInfo); }
const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { wxCHECK_MSG( IsOk(), NULL, wxT("invalid font") ); #if wxUSE_UNICODE #else if ( M_FONTDATA->m_nativeFontInfo.GetXFontName().empty() ) GetInternalFont(); #endif return &(M_FONTDATA->m_nativeFontInfo); }
const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { wxCHECK_MSG( IsOk(), NULL, wxT("invalid font") ); if ( !M_FONTDATA->HasNativeFont() ) { // NB: this call has important side-effect: it not only finds // GdkFont representation, it also initializes m_nativeFontInfo // by calling its SetXFontName method GetInternalFont(); } return &(M_FONTDATA->m_nativeFontInfo); }
WXFontSet wxFont::GetFontSet(double scale, WXDisplay* display) const { wxXFont* f = GetInternalFont(scale, display); if( !f ) return (WXFontSet) 0; Arg args[2]; int count = 0; XtSetArg( args[count], XmNfont, 0 ); ++count; XmRenditionRetrieve( (XmRendition) f->m_rendition, args, count ); return (WXFontSet) args[0].value; }
WXFontStructPtr wxFont::GetFontStruct(double scale, WXDisplay* display) const { wxXFont* f = GetInternalFont(scale, display); return (f ? f->m_fontStruct : (WXFontStructPtr) 0); }
WXRenderTable wxFont::GetRenderTable(WXDisplay* display) const { wxXFont* f = GetInternalFont(1.0, display); return (f ? f->m_renderTable : (WXRenderTable) 0); }
WXFontList wxFont::GetFontList(double scale, WXDisplay* display) const { wxXFont* f = GetInternalFont(scale, display); return (f ? f->m_fontList : (WXFontList) 0); }