More (serious) TODOs.
This commit is contained in:
parent
85af3d2a5b
commit
621d75695c
|
@ -596,7 +596,9 @@ void uiDrawTextFontGetMetrics(uiDrawTextFont *font, uiDrawTextFontMetrics *metri
|
||||||
PangoFontMetrics *pm;
|
PangoFontMetrics *pm;
|
||||||
|
|
||||||
pm = pango_font_get_metrics(font->f, NULL);
|
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));
|
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));
|
metrics->Descent = pangoToCairo(pango_font_metrics_get_descent(pm));
|
||||||
// Pango doesn't seem to expose this :( Use 0 and hope for the best.
|
// Pango doesn't seem to expose this :( Use 0 and hope for the best.
|
||||||
metrics->Leading = 0;
|
metrics->Leading = 0;
|
||||||
|
|
Loading…
Reference in New Issue