Delay font texture update, until draw is called. Rasterize glyphs during shaping.

This commit is contained in:
bruvzg 2022-04-04 10:31:07 +03:00
parent 479143ab2a
commit aad9d1414c
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
4 changed files with 105 additions and 92 deletions

View file

@ -159,6 +159,7 @@ class TextServerAdvanced : public TextServerExtension {
int texture_h = 0;
PackedInt32Array offsets;
Ref<ImageTexture> texture;
bool dirty = true;
};
struct FontTexturePosition {