gsk: Stop padding text node bounds
This should not be necessary, provided that the ink extents that pango provides are accurate. Update affected tests.
@@ -5855,10 +5855,10 @@ gsk_text_node_new (PangoFont *font,
|
||||
self->num_glyphs = n;
|
||||
|
||||
gsk_rect_init (&node->bounds,
|
||||
offset->x + ink_rect.x - 1,
|
||||
offset->y + ink_rect.y - 1,
|
||||
ink_rect.width + 2,
|
||||
ink_rect.height + 2);
|
||||
offset->x + ink_rect.x,
|
||||
offset->y + ink_rect.y,
|
||||
ink_rect.width,
|
||||
ink_rect.height);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1002 B After Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 173 B |