More font scaling changes.

These may or may not fix scaling issues on GTK with HiDPI monitors.
This commit is contained in:
Jeff Young 2021-09-08 22:30:21 +01:00
parent 61ef431c56
commit 7a035e2675
2 changed files with 11 additions and 0 deletions

View File

@ -38,6 +38,11 @@ WX_GRID::WX_GRID( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxS
m_weOwnTable( false )
{
SetDefaultCellOverflow( false );
// Make sure the GUI font scales properly on GTK
wxFont guiFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
guiFont.SetSymbolicSize( wxFONTSIZE_MEDIUM );
SetDefaultCellFont( guiFont );
}

View File

@ -24,6 +24,7 @@
#include <bitmaps.h>
#include <wx/settings.h>
#include "project_tree_item.h"
#include "project_tree_pane.h"
@ -47,6 +48,11 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) :
{
m_projectTreePane = parent;
// Make sure the GUI font scales properly on GTK
wxFont guiFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
guiFont.SetSymbolicSize( wxFONTSIZE_MEDIUM );
SetFont( guiFont );
// icons size is not know (depending on they are built)
// so get it:
wxSize iconsize;