reuse the fonts in the resource loading code (patch from Tom Felici)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7086987f11
commit
664ad22f4c
@ -1484,8 +1484,8 @@ wxFont wxResourceInterpretFontSpec(wxExpr *expr)
|
|||||||
if (faceNameExpr)
|
if (faceNameExpr)
|
||||||
faceName = faceNameExpr->StringValue();
|
faceName = faceNameExpr->StringValue();
|
||||||
|
|
||||||
wxFont font(point, family, style, weight, (underline != 0), faceName);
|
return *wxTheFontList->FindOrCreateFont(point, family, style, weight,
|
||||||
return font;
|
(underline != 0), faceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Separate file for the remainder of this, for BC++/Win16
|
// Separate file for the remainder of this, for BC++/Win16
|
||||||
|
Loading…
Reference in New Issue
Block a user