Improve font glyph cache packing shelf best height fit heuristic.

This commit is contained in:
bruvzg
2022-10-18 10:10:24 +03:00
parent 4a96fce801
commit c1af9d57a3
6 changed files with 246 additions and 185 deletions
+2 -2
View File
@@ -413,7 +413,7 @@
<param index="1" name="size" type="Vector2i" />
<param index="2" name="texture_index" type="int" />
<description>
Returns array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
Returns array containing glyph packing data.
</description>
</method>
<method name="font_get_transform" qualifiers="const">
@@ -824,7 +824,7 @@
<param index="2" name="texture_index" type="int" />
<param index="3" name="offset" type="PackedInt32Array" />
<description>
Sets array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
Sets array containing glyph packing data.
</description>
</method>
<method name="font_set_transform">