Font size issue with HiDPI on Linux

Description

While some parts of the application scale fonts properly according to the system wide font DPI settings, other parts don't.

I would expect that all parts apply the font settings equally.

image

image

image

Steps to reproduce

  1. Run on a 4K screen on Fedora 34

KiCad Version

Application: Eeschema
Version: 5.1.10, release build
Libraries:
    wxWidgets 3.0.5
    libcurl/7.71.1-DEV GnuTLS/3.6.15 (NSS/3.49.2) (OpenSSL/1.1.1k) zlib/1.2.11 libidn2/2.3.0
Platform: Linux 5.12.9-300.fc34.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.76.0
    OpenCASCADE Technology: 7.5.1
    Curl: 7.71.1-DEV
    Compiler: GCC 10.2.0 with C++ ABI 1014

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=OFF
    KICAD_USE_OCC=ON
    KICAD_SPICE=ON