mention that calling SetFaceName() with an invalid facename will invalidate the font object (see #10475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -432,8 +432,8 @@ public:
|
|||||||
If the current font face name is not recognized by wxFont or by the
|
If the current font face name is not recognized by wxFont or by the
|
||||||
underlying system, @c wxFONTFAMILY_UNKNOWN is returned.
|
underlying system, @c wxFONTFAMILY_UNKNOWN is returned.
|
||||||
|
|
||||||
Note that currently this function is rather unreliable (wxFONTFAMILY_UNKNOWN is
|
Note that currently this function is rather unreliable (@c wxFONTFAMILY_UNKNOWN
|
||||||
returned in too many cases) and not particularly useful.
|
is returned in too many cases) and not particularly useful.
|
||||||
Font families mostly make sense only for font creation; see SetFamily().
|
Font families mostly make sense only for font creation; see SetFamily().
|
||||||
|
|
||||||
@see SetFamily()
|
@see SetFamily()
|
||||||
@@ -544,14 +544,16 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the facename for the font.
|
Sets the facename for the font.
|
||||||
Returns @true if the given face name exists; @false otherwise.
|
|
||||||
|
|
||||||
@param faceName
|
@param faceName
|
||||||
A valid facename, which should be on the end-user's system.
|
A valid facename, which should be on the end-user's system.
|
||||||
|
|
||||||
@remarks To avoid portability problems, don't rely on a specific face,
|
@remarks To avoid portability problems, don't rely on a specific face,
|
||||||
but specify the font family instead (see ::wxFontFamily).
|
but specify the font family instead (see ::wxFontFamily and SetFamily()).
|
||||||
A suitable font will be found on the end-user's system.
|
|
||||||
|
@return @true if the given face name exists; if the face name doesn't exist
|
||||||
|
in the user's system then the font is invalidated (so that IsOk() will
|
||||||
|
return @false) and @false is returned.
|
||||||
|
|
||||||
@see GetFaceName(), SetFamily()
|
@see GetFaceName(), SetFamily()
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user