Skip to content

Commit

Permalink
Fixed formula for right padding in FontFileGlyphProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
redssu committed Feb 26, 2023
1 parent c3698d0 commit 815e08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Font/FontFileGlyphProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public IEnumerable<(GlyphInfo, Image<Rgba32>)> GetGlyphs()
{
Index = glyphIndex,
Glyph = glyph,
Kerning = new sbyte[3] { leftPadding, (sbyte)(glyphWidth - rightPadding), topPadding }
Kerning = new sbyte[3] { leftPadding, rightPadding, topPadding }
},
glyphImage
);
Expand Down

0 comments on commit 815e08d

Please sign in to comment.