_font cache v2

This commit is contained in:
2023-09-04 22:43:57 +03:00
parent 54761f40fe
commit 43b2348d62
4 changed files with 21 additions and 62 deletions

View File

@@ -158,7 +158,8 @@ void TextRender::UpdateLayout()
// Perform layout
Array<FontLineCache> lines;
font->ProcessText(text, lines, _layoutOptions);
Array<FontCharacterEntry> characterEntries;
font->ProcessText(text, lines, _layoutOptions, characterEntries);
// Prepare buffers capacity
_ib.Data.EnsureCapacity(text.Length() * 6 * sizeof(uint16));