1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 17:59:24 +01:00

possibly fix extended ignoring kerning in some cases

This commit is contained in:
Ellpeck 2020-03-19 17:36:53 +01:00
parent 9dfb6134bb
commit 3d7867feb2

View file

@ -17,6 +17,10 @@ namespace MLEM.Extended.Font {
}
public Vector2 MeasureString(string text) {
// For some reason, Extended's bitmap fonts don't take kerning into
// account when calculating the size of a single character
if (text.Length == 1)
text += ' ';
return this.Font.MeasureString(text);
}