diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | pango/pangowin32.c | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,13 @@ +2006-05-23 Tor Lillqvist <tml@novell.com> + + * pango/pangowin32.c (pango_win32_font_describe): Call + pango_font_description_set_absolute_size() instead of + pango_font_description_set_size() as the PangoWin32Font::size is + in pixels, not points. There has been several bugs opened around + this issue, with more or less misleading guesses. See for instance + #314114. Thanks to Behdad for finally noticing the real problem + here. + 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 342525 – With PangoFc and PangoWin32, approximate digit width is diff --git a/pango/pangowin32.c b/pango/pangowin32.c index a04c4553..488b8f7f 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -804,7 +804,7 @@ pango_win32_font_describe (PangoFont *font) PangoWin32Font *win32font = PANGO_WIN32_FONT (font); desc = pango_font_description_copy (win32font->win32face->description); - pango_font_description_set_size (desc, win32font->size); + pango_font_description_set_absolute_size (desc, win32font->size); return desc; } |