fix in fontspec parsing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b2b3552407
commit
a7987cc1a2
@ -166,6 +166,7 @@ wxFont::wxFont( const wxString& fontname, const wxFontData& fontdata )
|
||||
|
||||
wxStringTokenizer tn( fontname, wxT("-") );
|
||||
|
||||
tn.GetNextToken(); // skip initial empty token
|
||||
tn.GetNextToken(); // foundry
|
||||
|
||||
M_FONTDATA->m_faceName = tn.GetNextToken(); // family
|
||||
|
@ -166,6 +166,7 @@ wxFont::wxFont( const wxString& fontname, const wxFontData& fontdata )
|
||||
|
||||
wxStringTokenizer tn( fontname, wxT("-") );
|
||||
|
||||
tn.GetNextToken(); // skip initial empty token
|
||||
tn.GetNextToken(); // foundry
|
||||
|
||||
M_FONTDATA->m_faceName = tn.GetNextToken(); // family
|
||||
|
Loading…
Reference in New Issue
Block a user