[Interest] Cross-platform font normalization best practice

René J.V. Bertin rjvbertin at gmail.com
Tue May 12 19:08:42 CEST 2015


On Tuesday May 12 2015 10:00:06 Bob Hood wrote:

>  2. Add platform-aware code to the C++ file that manually changes the font 
>for each UI component under OS X builds.

I think that's the safest option(*)  which will also allow you to give the user the choice what font s/he wants (which I for one would expect from an application that doesn't use the platform-default font).
*) I've tried to edit the QtCreator UI files of a recent version (3.3 or so, built against Qt 5.3) and that simply had no effect.


I have seen "Al Bayan" rear its head myself on a number of occasions. I wonder if that isn't simply the 1st font in the list, which gets returned when a matching procedure fails (I've certainly seen that happen with font weight/styles).

R.



More information about the Interest mailing list