[TextServer] Store font extra spacing variations without making a full copy of font.

This commit is contained in:
bruvzg
2023-09-28 10:45:09 +03:00
parent ec62b8a3ee
commit 4a167fc740
12 changed files with 411 additions and 268 deletions

View File

@ -15,6 +15,13 @@
Creates a new, empty font cache entry resource. To free the resulting resource, use the [method free_rid] method.
</description>
</method>
<method name="create_font_linked_variation">
<return type="RID" />
<param index="0" name="font_rid" type="RID" />
<description>
Creates a new variation existing font which is reusing the same glyph cache and font data. To free the resulting resource, use the [method free_rid] method.
</description>
</method>
<method name="create_shaped_text">
<return type="RID" />
<param index="0" name="direction" type="int" enum="TextServer.Direction" default="0" />