better native font support for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-01-18 20:01:49 +00:00
parent 1542c42e72
commit 409d5a5860
14 changed files with 933 additions and 499 deletions

View File

@@ -21,9 +21,6 @@
#include <gdk/gdkprivate.h>
#include <gtk/gtk.h>
extern GdkFont *GtkGetDefaultGuiFont();
/*
#define wxSYS_COLOUR_SCROLLBAR 0
#define wxSYS_COLOUR_BACKGROUND 1
@@ -348,19 +345,6 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
{
if (!g_systemFont)
{
#if 0
GdkFont *gdk_font = GtkGetDefaultGuiFont();
if (gdk_font)
{
GSList *font_list = ((GdkFontPrivate*)gdk_font)->names;
char *name = (char*)font_list->data;
wxString font_string( name );
wxFontData font_data;
g_systemFont = new wxFont( font_string, font_data );
}
gtk_widget_destroy( widget );
#endif
g_systemFont = new wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL );
}