- wxFontFamily fontFamily = (wxFontFamily)font->GetFamily();
-
-#if defined(__WXGTK__)
- // under GTK the default family is wxSWISS, so looking for a font
- // with wxDEFAULT family should return a wxSWISS one instead of
- // creating a new one
- bool same = (fontFamily == family) ||
- (fontFamily == wxFONTFAMILY_SWISS && family == wxFONTFAMILY_DEFAULT);
-#else // !GTK
- // VZ: but why elsewhere do we require an exact match? mystery...
- bool same = fontFamily == family;
-#endif // GTK/!GTK