Get rid of wxDEFAULT_FONT_SIZE constant in wxGTK

Don't hardcode 12pt font size but use the size of the normal font
instead.
This commit is contained in:
Vadim Zeitlin
2018-09-12 20:21:09 +02:00
parent f7a7fe6c4a
commit a0d5b1e5da

View File

@@ -32,13 +32,6 @@
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// the default size (in points) for the fonts
static const int wxDEFAULT_FONT_SIZE = 12;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxFontRefData // wxFontRefData
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -147,7 +140,7 @@ void wxFontRefData::InitFromNative()
// Pango sometimes needs to have a size // Pango sometimes needs to have a size
int pango_size = pango_font_description_get_size( desc ); int pango_size = pango_font_description_get_size( desc );
if (pango_size == 0) if (pango_size == 0)
m_nativeFontInfo.SetPointSize(wxDEFAULT_FONT_SIZE); m_nativeFontInfo.SetSizeOrDefault(-1); // i.e. default
} }
wxFontRefData::wxFontRefData( const wxFontRefData& data ) wxFontRefData::wxFontRefData( const wxFontRefData& data )