[pango/matthiasc/for-main: 25/25] pango-view: Fix display of char extents
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main: 25/25] pango-view: Fix display of char extents
- Date: Fri, 19 Nov 2021 07:20:18 +0000 (UTC)
commit 5087dc434ed8e3aa475b30caebce80c1f362f90f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 19 02:19:43 2021 -0500
pango-view: Fix display of char extents
utils/viewer-pangocairo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/utils/viewer-pangocairo.c b/utils/viewer-pangocairo.c
index 9c69647b..981b9317 100644
--- a/utils/viewer-pangocairo.c
+++ b/utils/viewer-pangocairo.c
@@ -424,7 +424,7 @@ render_callback (PangoLayout *layout,
{
PangoRectangle rect;
- pango_layout_iter_get_cluster_extents (iter, NULL, &rect);
+ pango_layout_iter_get_char_extents (iter, &rect);
cairo_rectangle (cr,
(double)rect.x / PANGO_SCALE - lw / 2,
(double)rect.y / PANGO_SCALE - lw / 2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]