mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:56:02 +02:00
Gtk2: fixed font calculation when lfHeight < 0.
git-svn-id: trunk@28646 -
This commit is contained in:
parent
a9ab653001
commit
af4efa5544
@ -1435,7 +1435,7 @@ begin
|
||||
// which would be great with the given lfheight value, but older gtk2 version
|
||||
// doesn't have this function
|
||||
if lfHeight < 0 then
|
||||
aSize := -MulDiv(lfheight, 72, ScreenInfo.PixelsPerInchY) * PANGO_SCALE
|
||||
aSize := -lfHeight * PANGO_SCALE
|
||||
else
|
||||
aSize := lfHeight * PANGO_SCALE;
|
||||
pango_font_description_set_absolute_size(PangoDesc, aSize);
|
||||
|
Loading…
Reference in New Issue
Block a user