From 621d75695cecdea435fa7bba3567d0759f5e921d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 13 Jan 2016 14:34:28 -0500 Subject: [PATCH] More (serious) TODOs. --- unix/draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/draw.c b/unix/draw.c index 550ca7cc..4cfb3b0e 100644 --- a/unix/draw.c +++ b/unix/draw.c @@ -596,7 +596,9 @@ void uiDrawTextFontGetMetrics(uiDrawTextFont *font, uiDrawTextFontMetrics *metri PangoFontMetrics *pm; pm = pango_font_get_metrics(font->f, NULL); + // TODO this does NOT include space for the accents, which throws everything off metrics->Ascent = pangoToCairo(pango_font_metrics_get_ascent(pm)); + // TODO this always seems to be 0, which throws everything off even more metrics->Descent = pangoToCairo(pango_font_metrics_get_descent(pm)); // Pango doesn't seem to expose this :( Use 0 and hope for the best. metrics->Leading = 0;