Skip to content

Commit

Permalink
Fix FontDescriptionProcessor kerning (#7501)
Browse files Browse the repository at this point in the history
fixes #5098
  • Loading branch information
nkast committed Jul 2, 2021
1 parent 331ef91 commit ae8fe3c
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -145,6 +145,8 @@ private Glyph ImportGlyph(char character, Face face)
abc.A = face.Glyph.Metrics.HorizontalBearingX >> 6;
abc.B = face.Glyph.Metrics.Width >> 6;
abc.C = (face.Glyph.Metrics.HorizontalAdvance >> 6) - (abc.A + abc.B);
abc.A -= face.Glyph.BitmapLeft;
abc.B += face.Glyph.BitmapLeft;

// Construct the output Glyph object.
return new Glyph(character, glyphBitmap)
Expand Down

0 comments on commit ae8fe3c

Please sign in to comment.