Gtk2: fixed font calculation when lfHeight < 0.

git-svn-id: trunk@28646 -
This commit is contained in:
zeljko 2010-12-08 07:44:59 +00:00
parent a9ab653001
commit af4efa5544

View File

@ -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);