mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
possibly fix extended ignoring kerning in some cases
This commit is contained in:
parent
9dfb6134bb
commit
3d7867feb2
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ namespace MLEM.Extended.Font {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector2 MeasureString(string text) {
|
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);
|
return this.Font.MeasureString(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue