Allow native font specification
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -883,6 +883,8 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
|
|||||||
node = node->GetNext();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString xFontName = M_FONTDATA->m_nativeFontInfo.GetXFontName();
|
||||||
|
|
||||||
// not found, create a new one
|
// not found, create a new one
|
||||||
XFontStruct *font = (XFontStruct *)
|
XFontStruct *font = (XFontStruct *)
|
||||||
wxLoadQueryNearestFont(pointSize,
|
wxLoadQueryNearestFont(pointSize,
|
||||||
@@ -891,7 +893,8 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
|
|||||||
M_FONTDATA->m_weight,
|
M_FONTDATA->m_weight,
|
||||||
M_FONTDATA->m_underlined,
|
M_FONTDATA->m_underlined,
|
||||||
wxT(""),
|
wxT(""),
|
||||||
M_FONTDATA->m_encoding);
|
M_FONTDATA->m_encoding,
|
||||||
|
& xFontName);
|
||||||
|
|
||||||
if ( !font )
|
if ( !font )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user