1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Use the font's suggested line height instead of its ascent and descent.

In well-described fonts, this enables multi-line text (e.g. in manuals) to be
more readable.

The term "height" is also replaced with "line spacing" in Font's code.
This commit is contained in:
Nebuleon Fumika
2014-06-18 20:07:09 +00:00
committed by Maarten ter Huurne
parent 349e758b3b
commit 099bd24556
14 changed files with 27 additions and 27 deletions

View File

@@ -84,7 +84,7 @@ bool WallpaperDialog::exec()
unsigned int top, height;
tie(top, height) = gmenu2x->getContentArea();
int fontheight = gmenu2x->font->getHeight();
int fontheight = gmenu2x->font->getLineSpacing();
unsigned int nb_elements = height / fontheight;
while (!close) {