summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-29 18:34:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-29 18:34:55 -0400
commit6e2596ae578a22eda9794a7b23c9ac4c8cdef35b (patch)
treecc879b32eb67677a88d475fbf01efaa91a464a01 /utils
parent52db8f0802f6dde2be1af83006932dd2d8685c97 (diff)
downloadpango-6e2596ae578a22eda9794a7b23c9ac4c8cdef35b.tar.gz
pango-view: Improve glyph extents
We can't currently position them correctly for shifted runs. But at least we can get it right for the runs on the baseline.
Diffstat (limited to 'utils')
-rw-r--r--utils/viewer-pangocairo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/viewer-pangocairo.c b/utils/viewer-pangocairo.c
index 1083e33c..6918d2e9 100644
--- a/utils/viewer-pangocairo.c
+++ b/utils/viewer-pangocairo.c
@@ -434,7 +434,8 @@ render_callback (PangoLayout *layout,
pango_layout_iter_get_run_extents (iter, NULL, &rect);
x_pos = rect.x;
- y_pos = rect.y + pango_layout_iter_get_baseline (iter);
+ /* FIXME: need a run baseline */
+ y_pos = pango_layout_iter_get_baseline (iter);
for (int i = 0; i < run->glyphs->num_glyphs; i++)
{