X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36c9828f702fb504b07968703bcd82f04196070a..6c0ea5130fd233b97827e0cb392e68f64968ae32:/docs/doxygen/overviews/font.h diff --git a/docs/doxygen/overviews/font.h b/docs/doxygen/overviews/font.h index 71b1a3653c..5ed37b530f 100644 --- a/docs/doxygen/overviews/font.h +++ b/docs/doxygen/overviews/font.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: font +// Name: font.h // Purpose: topic overview // Author: wxWidgets team // RCS-ID: $Id$ @@ -8,99 +8,30 @@ /*! - @page font_overview wxFont overview + @page overview_font wxFont overview + + Class: wxFont, wxFontDialog - Class: #wxFont, #wxFontDialog A font is an object which determines the appearance of text, primarily when drawing text to a window or device context. A font is determined by the following parameters (not all of them have to be specified, of course): - - - - - - Point size - - - - - This is the standard way of referring to text size. - - - - - - Family - - - - - Supported families are: - @b wxDEFAULT, wxDECORATIVE, wxROMAN, wxSCRIPT, wxSWISS, wxMODERN. - @b wxMODERN is a fixed pitch font; the others are either fixed or variable pitch. - - - - - - Style - - - - - The value can be @b wxNORMAL, wxSLANT or @b wxITALIC. - - - - - - Weight - - - - - The value can be @b wxNORMAL, wxLIGHT or @b wxBOLD. - - - - - - Underlining - - - - - The value can be @true or @false. - - - - - - Face name - - - - - An optional string specifying the actual typeface to be used. If @NULL, - a default typeface will chosen based on the family. - - - - - - Encoding - - - - - The font encoding (see @b wxFONTENCODING_XXX - constants and the @ref fontencoding_overview for more - details) - - - - + @beginDefList + @itemdef{Point size, This is the standard way of referring to text size.} + @itemdef{Family, + Supported families are: + @b wxDEFAULT, @b wxDECORATIVE, @b wxROMAN, @b wxSCRIPT, @b wxSWISS, @b wxMODERN. + @b wxMODERN is a fixed pitch font; the others are either fixed or variable pitch.} + @itemdef{Style, The value can be @b wxNORMAL, @b wxSLANT or @b wxITALIC.} + @itemdef{Weight, The value can be @b wxNORMAL, @b wxLIGHT or @b wxBOLD.} + @itemdef{Underlining, The value can be @true or @false.} + @itemdef{Face name, + An optional string specifying the actual typeface to be used. If @NULL, + a default typeface will chosen based on the family.} + @itemdef{Encoding, + The font encoding (see @b wxFONTENCODING_XXX + constants and the @ref overview_fontencoding for more details)} + @endDefList Specifying a family, rather than a specific typeface name, ensures a degree of portability across platforms because a suitable font will be chosen for the @@ -108,34 +39,38 @@ parameters above don't suffice, in general, to identify all the available fonts and this is where using the native font descriptions may be helpful - see below. + Under Windows, the face name can be one of the installed fonts on the user's system. Since the choice of fonts differs from system to system, either choose standard Windows fonts, or if allowing the user to specify a face name, store the family name with any file that might be transported to a different Windows machine or other platform. - @b Note: There is currently a difference between the appearance - of fonts on the two platforms, if the mapping mode is anything other than - wxMM_TEXT. Under X, font size is always specified in points. Under MS - Windows, the unit for text is points but the text is scaled according to the - current mapping mode. However, user scaling on a device context will also - scale fonts under both environments. + @note There is currently a difference between the appearance + of fonts on the two platforms, if the mapping mode is anything other than + wxMM_TEXT. Under X, font size is always specified in points. Under MS + Windows, the unit for text is points but the text is scaled according to the + current mapping mode. However, user scaling on a device context will also + scale fonts under both environments. + + @li @ref overview_font_nativeinfo - @ref nativefontinformation_overview +