make clear that wxFont::SetFamily() does change the font face name, too (not only on wxGTK, also in wxMSW); reorganize docs for wxFont using doxygen groups; mention that GetFamily() is not very useful and returns a lot of times wxFONTFAMILY_UNKNOWN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -641,10 +641,9 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family)
|
||||
|
||||
lf.lfPitchAndFamily = (BYTE)(DEFAULT_PITCH) | ff_family;
|
||||
|
||||
if ( !wxStrlen(lf.lfFaceName) )
|
||||
{
|
||||
SetFaceName(facename);
|
||||
}
|
||||
// reset the facename so that CreateFontIndirect() will automatically choose a
|
||||
// face name based only on the font family.
|
||||
lf.lfFaceName[0] = '\0';
|
||||
}
|
||||
|
||||
void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)
|
||||
|
||||
Reference in New Issue
Block a user