Delay font texture update, until draw is called. Rasterize glyphs during shaping.
This commit is contained in:
parent
479143ab2a
commit
aad9d1414c
4 changed files with 105 additions and 92 deletions
|
|
@ -159,6 +159,7 @@ class TextServerAdvanced : public TextServerExtension {
|
|||
int texture_h = 0;
|
||||
PackedInt32Array offsets;
|
||||
Ref<ImageTexture> texture;
|
||||
bool dirty = true;
|
||||
};
|
||||
|
||||
struct FontTexturePosition {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue