[pango] Really get _pango_cairo_core_text_font_new right
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Really get _pango_cairo_core_text_font_new right
- Date: Thu, 14 Apr 2011 10:44:18 +0000 (UTC)
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]