[Font] Add option to disable embedded bitmaps loading.
This commit is contained in:
@ -144,6 +144,13 @@
|
||||
Returns the font descent (number of pixels below the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_disable_embedded_bitmaps" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Returns whether the font's embedded bitmap loading is disabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_embolden" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@ -672,6 +679,14 @@
|
||||
Sets the font descent (number of pixels below the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_disable_embedded_bitmaps">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="disable_embedded_bitmaps" type="bool" />
|
||||
<description>
|
||||
If set to [code]true[/code], embedded font bitmap loading is disabled (bitmap-only and color fonts ignore this property).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_embolden">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user