X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46b03af7ae3afe6ab7d4be71fcd1625a006af6ff..0d53638f7147c18153f63fdfc096b17be6e22a27:/src/cocoa/font.mm?ds=sidebyside diff --git a/src/cocoa/font.mm b/src/cocoa/font.mm index d46eae106c..946f77b4ef 100644 --- a/src/cocoa/font.mm +++ b/src/cocoa/font.mm @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/cocoa/font.cpp +// Name: src/cocoa/font.mm // Purpose: wxFont class // Author: AUTHOR // Modified by: // Created: ??/??/98 -// RCS-ID: $Id$ // Copyright: (c) AUTHOR // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -64,7 +63,7 @@ and a particular set of attributes. Furthermore, the attributes instead of being flags as in NSFontManager are instead well-defined keys in a dictionary. - The only way to get that behavior without NSFontManager is to pare down the + The only way to get that behaviour without NSFontManager is to pare down the list as much as possible using the classic NSFontManager methods and then to instantiate each font in the list and match on each font's afmDictionary. @@ -102,7 +101,7 @@ static wxNativeFontInfo MakeNativeFontInfo(int size, wxFontFamily family, wxFont wxNativeFontInfo so anyone who subclassed it or created one without going through wxFont should expect what they get (i.e. horrible breakage) There's a concern that wxFontRefData was in the public header when 2.8 shipped so - it's possible that someone did subclass it to get better font behavior. + it's possible that someone did subclass it to get better font behaviour. For right now, the plan is to write it strictly ABI compatible with 2.8 and eventually to enhance it in trunk to accurately represent font attributes as Cocoa sees them. @@ -350,7 +349,7 @@ wxFontEncoding wxFont::GetEncoding() const int wxFont::GetPointSize() const { - wxCHECK_MSG( Ok(), 0, wxT("invalid font") ); + wxCHECK_MSG( IsOk(), 0, wxT("invalid font") ); return M_FONTDATA->m_info.pointSize; } @@ -364,7 +363,7 @@ bool wxFont::GetUnderlined() const wxFontStyle wxFont::GetStyle() const { - wxCHECK_MSG( Ok(), 0, wxT("invalid font") ); + wxCHECK_MSG( IsOk(), 0, wxT("invalid font") ); return M_FONTDATA->m_info.style; } @@ -375,13 +374,13 @@ wxFontFamily wxFont::DoGetFamily() const wxFontWeight wxFont::GetWeight() const { - wxCHECK_MSG( Ok(), 0, wxT("invalid font") ); + wxCHECK_MSG( IsOk(), 0, wxT("invalid font") ); return M_FONTDATA->m_info.weight; } const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { - wxCHECK_MSG( Ok(), 0, wxT("invalid font") ); + wxCHECK_MSG( IsOk(), 0, wxT("invalid font") ); return &M_FONTDATA->m_info; }