X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab5fe83396c13f9fbf01630c52adf4df7607cbfe..4aaef122cbbd5bbe0e70b824e320458e2329dd13:/include/wx/fontutil.h diff --git a/include/wx/fontutil.h b/include/wx/fontutil.h index c8df0749ca..1ead928848 100644 --- a/include/wx/fontutil.h +++ b/include/wx/fontutil.h @@ -64,10 +64,10 @@ struct WXDLLEXPORT wxNativeFontInfo // This is a generic implementation that should work on all ports // without specific support by the port. // - #define wNO_NATIVE_FONTINFO + #define wxNO_NATIVE_FONTINFO int pointSize; - int family; + wxFontFamily family; wxFontStyle style; wxFontWeight weight; bool underlined; @@ -81,14 +81,13 @@ struct WXDLLEXPORT wxNativeFontInfo // reset to the default state void Init(); - // accessors and modifiers for the font elements: note that there is no - // GetFamily() because in general it is impossible to get the family for an - // arbitrary native font + // accessors and modifiers for the font elements int GetPointSize() const; wxFontStyle GetStyle() const; wxFontWeight GetWeight() const; bool GetUnderlined() const; wxString GetFaceName() const; + wxFontFamily GetFamily() const; wxFontEncoding GetEncoding() const; void SetPointSize(int pointsize); @@ -96,6 +95,7 @@ struct WXDLLEXPORT wxNativeFontInfo void SetWeight(wxFontWeight weight); void SetUnderlined(bool underlined); void SetFaceName(wxString facename); + void SetFamily(wxFontFamily family); void SetEncoding(wxFontEncoding encoding); // it is important to be able to serialize wxNativeFontInfo objects to be