From 209ce629ac70e21ba2239c36a9c2ad7571964ce2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 15 May 2007 12:09:44 +0000 Subject: [PATCH] added explanatory comment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fontmgrcmn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/fontmgrcmn.cpp b/src/common/fontmgrcmn.cpp index 2c4c06c3b2..ee2fe4915a 100644 --- a/src/common/fontmgrcmn.cpp +++ b/src/common/fontmgrcmn.cpp @@ -130,6 +130,8 @@ wxFontBundleBase::GetFaceForFont(const wxFontMgrFontRefData& font) const if ( !HasFace((FaceType)type) ) { + // if we can't get the exact font requested, substitute it with + // some other variant: for (int i = 0; i < FaceType_Max; i++) { if ( HasFace((FaceType)i) ) -- 2.50.0