implement wxNativeFontInfo::SetFamily for wxGTK with the same logic used by wxMSW; remove the now useless m_family from wxGTK's wxFont implementation; better docs for many wxFont functions (don't use typeface term; use the 'face name' one instead) and wxFontFamily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,11 +85,14 @@ void FontTestCase::GetSet()
|
||||
|
||||
// test Get/SetFamily()
|
||||
|
||||
test.SetFamily( wxFONTFAMILY_MODERN );
|
||||
test.SetFamily( wxFONTFAMILY_ROMAN );
|
||||
CPPUNIT_ASSERT( test.IsOk() );
|
||||
CPPUNIT_ASSERT_EQUAL( wxFONTFAMILY_MODERN, test.GetFamily() );
|
||||
CPPUNIT_ASSERT( wxFONTFAMILY_ROMAN == test.GetFamily() ||
|
||||
wxFONTFAMILY_UNKNOWN == test.GetFamily() );
|
||||
// note that there is always the possibility that GetFamily() returns
|
||||
// wxFONTFAMILY_UNKNOWN so that we consider it as a valid return value
|
||||
|
||||
|
||||
|
||||
// test Get/SetEncoding()
|
||||
|
||||
//test.SetEncoding( wxFONTENCODING_KOI8 );
|
||||
|
Reference in New Issue
Block a user