X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..69d31e313035d5e22d9400ec946f6007f710910c:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 4010d6b7bc..0725335a58 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -214,7 +214,7 @@ void wxFontBase::SetPixelSize( const wxSize& pixelSize ) // NOTE: this algorithm for adjusting the font size is used by all // implementations of wxFont except under wxMSW and wxGTK where // native support to font creation using pixel-size is provided. - + int largestGood = 0; int smallestBad = 0; @@ -804,7 +804,7 @@ bool wxNativeFontInfo::FromUserString(const wxString& s) token.Trim(true).Trim(false).MakeLower(); if (insideQuotes) { - if (token.StartsWith("'") || + if (token.StartsWith("'") || token.EndsWith("'")) { insideQuotes = false; @@ -910,7 +910,7 @@ bool wxNativeFontInfo::FromUserString(const wxString& s) family = wxFONTFAMILY_TELETYPE; else return false; - + SetFamily(family); } // NB: the check on the facename is implemented in wxFontBase::SetFaceName