From 2b71337c4a3b7f7b0bd0c13e3ac3eaf40069f1f5 Mon Sep 17 00:00:00 2001 From: bloeys Date: Thu, 7 Jul 2022 15:38:06 +0400 Subject: [PATCH] Remove one pixel offset --- glyphs/font_atlas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glyphs/font_atlas.go b/glyphs/font_atlas.go index 6a2ed89..7fc68c7 100755 --- a/glyphs/font_atlas.go +++ b/glyphs/font_atlas.go @@ -167,7 +167,7 @@ func NewFontAtlasFromFont(f *truetype.Font, face font.Face, pointSize uint) (*Fo } atlas.Glyphs[g] = FontAtlasGlyph{ - U: float32(gTopLeft.X) - 1, + U: float32(gTopLeft.X), V: float32(atlasSizeY - gBotRight.Y), SizeU: float32(gBotRight.X - gTopLeft.X), SizeV: float32(gBotRight.Y - gTopLeft.Y),