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:
Vadim Zeitlin 2002-04-03 13:01:34 +00:00
parent 7086987f11
commit 664ad22f4c

View File

@ -1484,8 +1484,8 @@ wxFont wxResourceInterpretFontSpec(wxExpr *expr)
if (faceNameExpr)
faceName = faceNameExpr->StringValue();
wxFont font(point, family, style, weight, (underline != 0), faceName);
return font;
return *wxTheFontList->FindOrCreateFont(point, family, style, weight,
(underline != 0), faceName);
}
// Separate file for the remainder of this, for BC++/Win16