Remove one pixel offset

This commit is contained in:
bloeys
2022-07-07 15:38:06 +04:00
parent 16bfe7f05b
commit 2b71337c4a

View File

@ -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),