blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

font leading #70

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: nitrologic

To move the look of mojox from "FLTK" to say "QT" I added a fixed 20% leading to the font class and wondering if this attribute may be worth considering.

One issue may be sub pixel blurring if font height starts returning non integer results for some font sizes.

Ideally text should be drawn with y at half lead offset but again this has sub-pixel implications.

more info on leading here - https://en.wikipedia.org/wiki/Leading

leading