summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangocairo-fcfont.c')
-rw-r--r--pango/pangocairo-fcfont.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index 3ac166e6..8401ed8d 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -166,7 +166,7 @@ get_font_size (const FcPattern *pattern)
double dpi;
if (FcPatternGetDouble (pattern, FC_PIXEL_SIZE, 0, &size) == FcResultMatch)
- return size * PANGO_SCALE;
+ return size;
/* Just in case FC_PIXEL_SIZE got unset between pango_fc_make_pattern()
* and here. That would be very weird.
@@ -240,8 +240,7 @@ _pango_cairo_fc_font_new (PangoCairoFcFontMap *cffontmap,
fc_matrix.yy,
0., 0.);
- cairo_matrix_scale (&font_matrix,
- size / PANGO_SCALE, size / PANGO_SCALE);
+ cairo_matrix_scale (&font_matrix, size, size);
_pango_cairo_font_private_initialize (&cffont->cf_priv,
(PangoCairoFont *) cffont,