GemTalk / Sparkle

MIT License
11 stars 5 forks source link

Stylesheets should be able to be proportional to system font sizes #40

Open martinmcclure opened 3 years ago

martinmcclure commented 3 years ago

Both font sizes and geometry in Spec2 style sheets should be able to be specified relative to system font sizes. This has been suggested to Esteban, but will not be done there anytime soon, so we may end up doing this ourselves.

The problem is that if you specify a slightly larger, bold, font (as we do for pane header labels) you have to specify that as an absolute point size. Then if you increase the system's default font size (as you might when doing a presentation) your "larger" font is now smaller than all the rest of the text.

In addition, UI elements that contain single lines of text (like an evaluator header) may now not be tall enough to hold the text.

Font and geometry styles that can adjust with the system font choices would fix this, and it doesn't look very hard to do.