_font whiteline skip fix

This commit is contained in:
2024-03-22 20:31:09 +02:00
parent f7677b6ab8
commit d32f690eac
2 changed files with 71 additions and 25 deletions

View File

@@ -1411,7 +1411,7 @@ void Render2D::DrawText(Font* font, const StringView& text, const Color& color,
for (int32 charIndex = line.FirstCharIndex; charIndex < line.LastCharIndex; charIndex++)
{
const Char c = text[charIndex];
const FontLineCharacterCache& characterCache = CharacterCache[entryIndex];
const FontLineCharacterCache& characterCache = CharacterCache[charIndex];
const FontCharacterEntry& entry = characterCache.Entry;
pointer += advanceDirX * (float)characterCache.Kerning;