- wxNativeFont font = wxLoadQueryFont( pointSize, family, style, weight,
+ wxNativeFont font = 0;
+
+ // if we already have the X font name, try to use it
+ if( xFontName && !xFontName->IsEmpty() )
+ font = wxLoadFont(*xFontName);
+
+ if( !font )
+ font = wxLoadQueryFont( pointSize, family, style, weight,