_font small opt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user