Font style selection doesn't work for some fonts
Description
There's a tiny genuine bug in here (can't select Bold on some fonts) but this is mostly a wishlist thing.
Some fonts have an unusual repertoire of styles that results in KiCad making unusual choices. For example, if I write this label in Futura, it renders with the "Medium" style with these pointy stylized capitals regardless of whether I've selected Bold:
KiCad seems to fail to find the correct style when there isn't one called Regular. LibreOffice on the same system lets me pick Bold:
It'd be nice to have a dropdown to choose font styles instead of just the B / I buttons.
Steps to reproduce
- Select a font without a Regular style.
KiCad Version
Application: KiCad PCB Editor arm64 on arm64
Version: (6.99.0-5179-g411efe6f3d), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.0
libcurl/7.85.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.0
Platform: macOS Ventura Version 13.1 (Build 22C65), 64 bit, Little endian, wxMac
Build Info:
Date: Dec 29 2022 01:19:59
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON