It has been reported, that on localized systems
the font style was written in local language.
Therefore config line was incorrectly read by
GTK and therefore applications displayed bad
font. To avoid that this commit is introduced.
This is not an ideal solution, because the selected
font style in font dialog will be ignored by GTK applications.
However, there is a workaround for that: you need to select a
font with the style in its family name. For example: "Inter"
with style "Medium" will be "Inter Medium". But some styles
do not have these "clones", e.g. Regular, Bold and Italic.
At least ignored style with very easy workaround is better, than
no ability to correctly apply a font at all with a very tedious
workaround aka "manually editing a lot of GTK config files and options".
BUG: 333146
FIXED-IN: 5.18.1