#52 Portable font sizes

open
nobody
None
5
2013-03-04
2013-03-04
zhnmju123
No

Hi,

I'm currently porting an application to OS X, thereby I noticed a problem with the font sizes as they are specified in wxFormbuilder:
Windows XP uses 9, Vista 10 and OS X 13 as default font size. I found all the font sizes I entered manually in wxFormbuilder looked good on the former two OSs, but are shrinked on OS X due to the larger default font sizes. I imagine with various Linux OSs there is similar deviation in font sizes.

Thereby I propose the following solution: In wxFormbuilder do not present font sizes in "points", but rather multiples of the standard font!

wxNORMAL_FONT->GetPointSize()

The most obvious, but sub-optimal first thought is to provide a few constants, like "LARGE_FONT_SIZE, SMALL_FONT_SIZE, HEADER_FONT_SIZE", ect. But it is not clear what is large, medium, small for each individual developer.

Therefore the simplest and best solution is to allow to enter multiples of the standard font size, like:

1.25x, 1,5x, 1.75x, 2x

This would be a tremendous help when writing truly cross-platform applications!

Thanks for considering, best Zenju

Discussion

  • zhnmju123
    zhnmju123
    2013-03-04

    > Windows XP uses 9, Vista 10

    This should be "8 and 9".