[pango] Really get _pango_cairo_core_text_font_new right



commit 5e658c9e8942468666b72eed97adca595796817c
Author: Kristian Rietveld <kris gtk org>
Date:   Fri Mar 19 10:40:42 2010 +0100

    Really get _pango_cairo_core_text_font_new right

 pango/pangocairo-coretextfont.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/pangocairo-coretextfont.c b/pango/pangocairo-coretextfont.c
index e73e693..5948752 100644
--- a/pango/pangocairo-coretextfont.c
+++ b/pango/pangocairo-coretextfont.c
@@ -223,7 +223,7 @@ _pango_cairo_core_text_font_new (PangoCairoCoreTextFontMap  *cafontmap,
 
   postscript_name = _pango_core_text_face_get_postscript_name (face);
 
-  abs_size = size = (double) pango_font_description_get_size (desc) / PANGO_SCALE;
+  abs_size = size = pango_units_to_double (pango_font_description_get_size (desc));
 
   if (context)
     {
@@ -236,7 +236,7 @@ _pango_cairo_core_text_font_new (PangoCairoCoreTextFontMap  *cafontmap,
     dpi = cafontmap->dpi;
 
   if (pango_font_description_get_size_is_absolute (desc))
-    size *= dpi / 72.;
+    size *= 72. / dpi;
   else
     abs_size *= dpi / 72.;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]