[pango/matthiasc/for-main: 5/5] pango-view: Improve glyph extents
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main: 5/5] pango-view: Improve glyph extents
- Date: Sun, 29 Aug 2021 22:36:11 +0000 (UTC)
commit 6e2596ae578a22eda9794a7b23c9ac4c8cdef35b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 29 18:34:55 2021 -0400
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.
utils/viewer-pangocairo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]