X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03fc89fff2d6e823e7d4d14fbe14822ad6777b1..a8d9809fc0d3ac6a285bddeb6de44d334e38e011:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 842c716587..656f947cc5 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -14,6 +14,7 @@ #include "wx/font.h" #include "wx/utils.h" #include "wx/log.h" +#include "wx/gdicmn.h" #include #include "gdk/gdk.h" @@ -401,7 +402,7 @@ static GdkFont*wxLoadQueryFont( int pointSize, int family, int style, int weight if (!facename.IsEmpty()) { wxSprintf( wxBuffer, _T("-*-%s-*-*-normal-*-*-*-*-*-*-*-*-*"), facename.c_str() ); - GdkFont *test = gdk_font_load( wxConv_libc.cWX2MB(wxBuffer) ); + GdkFont *test = gdk_font_load( wxConvCurrent->cWX2MB(wxBuffer) ); if (test) { gdk_font_unref( test ); @@ -427,7 +428,7 @@ static GdkFont*wxLoadQueryFont( int pointSize, int family, int style, int weight wxSprintf( wxBuffer, _T("-*-%s-%s-%s-normal-*-*-%d-*-*-*-*-*-*"), xfamily, xweight, xstyle, pointSize); - return gdk_font_load( wxConv_libc.cWX2MB(wxBuffer) ); + return gdk_font_load( wxConvCurrent->cWX2MB(wxBuffer) ); } static GdkFont *wxLoadQueryNearestFont( int point_size, int family, int style, int weight,