mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
vulkan/glyphcache: Add padding around ink rect
This is what the GL renderer does, and it gets rid of the cutout characters.
This commit is contained in:
parent
c0449e3245
commit
981e94505c
@ -381,6 +381,11 @@ gsk_vulkan_glyph_cache_lookup (GskVulkanGlyphCache *cache,
|
||||
pango_font_get_glyph_extents (font, glyph, &ink_rect, NULL);
|
||||
pango_extents_to_pixels (&ink_rect, NULL);
|
||||
|
||||
ink_rect.x -= 1;
|
||||
ink_rect.y -= 1;
|
||||
ink_rect.width += 2;
|
||||
ink_rect.height += 2;
|
||||
|
||||
value->draw_x = ink_rect.x;
|
||||
value->draw_y = ink_rect.y;
|
||||
value->draw_width = ink_rect.width;
|
||||
|
Loading…
Reference in New Issue
Block a user