From a0d5b1e5daa0278cd028f47fd376170b07d5b11d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 12 Sep 2018 20:21:09 +0200 Subject: [PATCH] Get rid of wxDEFAULT_FONT_SIZE constant in wxGTK Don't hardcode 12pt font size but use the size of the normal font instead. --- src/gtk/font.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index e8bf634526..eb90851fe1 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -32,13 +32,6 @@ #include "wx/gtk/private.h" -// ---------------------------------------------------------------------------- -// constants -// ---------------------------------------------------------------------------- - -// the default size (in points) for the fonts -static const int wxDEFAULT_FONT_SIZE = 12; - // ---------------------------------------------------------------------------- // wxFontRefData // ---------------------------------------------------------------------------- @@ -147,7 +140,7 @@ void wxFontRefData::InitFromNative() // Pango sometimes needs to have a size int pango_size = pango_font_description_get_size( desc ); if (pango_size == 0) - m_nativeFontInfo.SetPointSize(wxDEFAULT_FONT_SIZE); + m_nativeFontInfo.SetSizeOrDefault(-1); // i.e. default } wxFontRefData::wxFontRefData( const wxFontRefData& data )