From a72eb76c6c23b0e0e25400946f101cb6436b9b59 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 23 May 2006 07:54:09 +0000 Subject: Call pango_font_description_set_absolute_size() instead of 2006-05-23 Tor Lillqvist * 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. --- ChangeLog | 10 ++++++++++ pango/pangowin32.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9a7220f8..1cbf165c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-05-23 Tor Lillqvist + + * 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 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; } -- cgit v1.2.1