From 94e50b276770c5e4286465c4c6511f1973dab1b3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 2 Jun 2019 16:02:31 +0000 Subject: [PATCH] glyph cache: Reinstate 1 pixel padding This is necessary to prevent bleeding. --- gsk/gl/gskglglyphcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index b360dccca7..0f39df607b 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -168,8 +168,8 @@ add_to_cache (GskGLGlyphCache *cache, g_assert (was_packed); } - value->tx = (float)packed_x / atlas->width; - value->ty = (float)packed_y / atlas->height; + value->tx = (float)(packed_x + 1) / atlas->width; + value->ty = (float)(packed_y + 1) / atlas->height; value->tw = (float)width / atlas->width; value->th = (float)height / atlas->height; value->used = TRUE;