Expose FontData::{set,get}_fixed_size
methods
This commit is contained in:
parent
4ea87f36cd
commit
753d677343
2 changed files with 16 additions and 0 deletions
|
@ -93,6 +93,12 @@
|
|||
Returns font descent (number of pixels below the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_fixed_size" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns font fixed size.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_font_name" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
|
@ -481,6 +487,13 @@
|
|||
Sets the font descent (number of pixels below the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_fixed_size">
|
||||
<return type="void" />
|
||||
<argument index="0" name="fixed_size" type="int" />
|
||||
<description>
|
||||
Sets the fixed size for the font.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_font_name">
|
||||
<return type="void" />
|
||||
<argument index="0" name="name" type="String" />
|
||||
|
|
|
@ -88,6 +88,9 @@ void FontData::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_msdf_size", "msdf_size"), &FontData::set_msdf_size);
|
||||
ClassDB::bind_method(D_METHOD("get_msdf_size"), &FontData::get_msdf_size);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_fixed_size", "fixed_size"), &FontData::set_fixed_size);
|
||||
ClassDB::bind_method(D_METHOD("get_fixed_size"), &FontData::get_fixed_size);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_force_autohinter", "force_autohinter"), &FontData::set_force_autohinter);
|
||||
ClassDB::bind_method(D_METHOD("is_force_autohinter"), &FontData::is_force_autohinter);
|
||||
|
||||
|
|
Loading…
Reference in a new issue