_font small opt

This commit is contained in:
2023-09-09 14:45:22 +03:00
parent 49497d1a78
commit 0c8064fb0c
4 changed files with 25 additions and 27 deletions

View File

@@ -1357,7 +1357,7 @@ void Render2D::DrawText(Font* font, const StringView& text, const Color& color,
// Process text to get lines
Lines.Clear();
static Array<FontCharacterEntry> characterEntries(128);
static Array<float> characterKernings(128);
static Array<int32> characterKernings(128);
characterEntries.Clear();
characterKernings.Clear();
@@ -1409,7 +1409,7 @@ void Render2D::DrawText(Font* font, const StringView& text, const Color& color,
}
pointer.X += (float)kerning * scale;*/
pointer.X += kerning;
pointer.X += kerning * scale;
previous = entry;
// Omit whitespace characters