summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-05-23 07:54:09 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-05-23 07:54:09 +0000
commita72eb76c6c23b0e0e25400946f101cb6436b9b59 (patch)
tree7b94230e0e4443acc62886cad207ae5532fce693
parent68923711e30cffeaa410bbad0511238426c0ca74 (diff)
downloadpango-a72eb76c6c23b0e0e25400946f101cb6436b9b59.tar.gz
Call pango_font_description_set_absolute_size() instead of
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.
-rw-r--r--ChangeLog10
-rw-r--r--pango/pangowin32.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a7220f8..1cbf165c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}