summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2009-12-06 20:53:20 +0100
committerKristian Rietveld <kris@gtk.org>2009-12-06 20:53:20 +0100
commit20889f065700ef005b1016729e9c26e078ef9e8a (patch)
treef36aebf5c2076cd2c5b9105e9dbe029a8c6a67a1 /pango
parent1a6d89b217fb259f91f8661351336cec651c55e3 (diff)
downloadpango-20889f065700ef005b1016729e9c26e078ef9e8a.tar.gz
Do not multiply return value of CTFontGetDescent with -1
The return value of CTFontGetDescent is already positive, as opposed to the ats_metrics.descent value used before. This is a regression introduced by the previous patch "porting" the backend to CoreText, which also broke support for Tiger and earlier -- we will fix that soonish.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangocairo-atsuifont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocairo-atsuifont.c b/pango/pangocairo-atsuifont.c
index 21472440..91391e7e 100644
--- a/pango/pangocairo-atsuifont.c
+++ b/pango/pangocairo-atsuifont.c
@@ -134,7 +134,7 @@ pango_cairo_atsui_font_create_metrics_for_context (PangoCairoFont *font,
metrics = pango_font_metrics_new ();
metrics->ascent = CTFontGetAscent(ct_font) * PANGO_SCALE;
- metrics->descent = -CTFontGetDescent(ct_font) * PANGO_SCALE;
+ metrics->descent = CTFontGetDescent(ct_font) * PANGO_SCALE;
metrics->underline_position = CTFontGetUnderlinePosition(ct_font) * PANGO_SCALE;
metrics->underline_thickness = CTFontGetUnderlineThickness(ct_font) * PANGO_SCALE;