X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dff1625b7dc47aad34e490924fbbe58cb0917d5d..b05fde97c58db22ddf4f98581787817a2dd494dc:/src/common/fontmgrcmn.cpp 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) )