diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 19:11:06 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 19:11:06 -0400 |
commit | 7e4b2b971ff9b3d53c56fd96632e351cff8749bb (patch) | |
tree | cee32cd523ed12c94d2a439248df7b299d140f08 /gsk/gskrendernodeimpl.c | |
parent | c6cacd2b2d397df7e73a8db166727f1ca405713b (diff) | |
download | gtk+-7e4b2b971ff9b3d53c56fd96632e351cff8749bb.tar.gz |
Revert "gsk: Stop enlarging text bounding boxes"
This reverts commit 87af45403ace1047b91ddbab98d9d5a5e15b84eb.
I've found that this change is needed to ensure that the
bounding boxes of text nodes encompass all the glyphd drawing.
Without it, we overdraw the widget boundaries and cut off
glyphs.
Diffstat (limited to 'gsk/gskrendernodeimpl.c')
-rw-r--r-- | gsk/gskrendernodeimpl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 18cbcd185a..fd2a9e5d44 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -4477,10 +4477,10 @@ gsk_text_node_new (PangoFont *font, self->num_glyphs = n; graphene_rect_init (&node->bounds, - offset->x + ink_rect.x, - offset->y + ink_rect.y, - ink_rect.width, - ink_rect.height); + offset->x + ink_rect.x - 1, + offset->y + ink_rect.y - 1, + ink_rect.width + 2, + ink_rect.height + 2); return node; } |