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

View File

@ -262,7 +262,7 @@
<param index="1" name="size" type="Vector2i" />
<param index="2" name="texture_index" type="int" />
<description>
Returns a copy of the array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
Returns a copy of the array containing glyph packing data.
</description>
</method>
<method name="get_transform" qualifiers="const">
@ -522,7 +522,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 (for the fonts without dynamic glyph generation support).
Sets array containing glyph packing data.
</description>
</method>
<method name="set_transform">