Add options to embolden and transform font outlines to simulate bold and italic typefaces.
This commit is contained in:
@@ -112,6 +112,13 @@
|
||||
Returns the font descent (number of pixels below the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_embolden" qualifiers="virtual const">
|
||||
<return type="float" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Returns font embolden strength.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_fixed_size" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
@@ -368,6 +375,13 @@
|
||||
Returns array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_transform" qualifiers="virtual const">
|
||||
<return type="Transform2D" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Retruns 2D transform applied to the font outlines.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_underline_position" qualifiers="virtual const">
|
||||
<return type="float" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
@@ -551,6 +565,14 @@
|
||||
Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_embolden" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
<argument index="1" name="strength" type="float" />
|
||||
<description>
|
||||
Sets font embolden strength. If [code]strength[/code] is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_fixed_size" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
@@ -773,6 +795,15 @@
|
||||
Sets array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_transform" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
<argument index="1" name="transform" type="Transform2D" />
|
||||
<description>
|
||||
Sets 2D transform, applied to the font outlines, can be used for slanting, flipping and rotating glyphs.
|
||||
For example, to simulate italic typeface by slanting, apply the following transform [code]Transform2D(1.0, slant, 0.0, 1.0, 0.0, 0.0)[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_underline_position" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<argument index="0" name="font_rid" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user