Merge pull request #64297 from timothyqiu/outline-doc
Document `outline` parameter of `Font.draw_char()`
This commit is contained in:
commit
1806e414b8
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
<argument index="5" name="outline" type="bool" default="false" />
|
<argument index="5" name="outline" type="bool" default="false" />
|
||||||
<description>
|
<description>
|
||||||
Draw character [code]char[/code] into a canvas item using the font at a given position, with [code]modulate[/code] color, and optionally kerning if [code]next[/code] is passed. clipping the width. [code]position[/code] specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character.
|
Draw character [code]char[/code] into a canvas item using the font at a given position, with [code]modulate[/code] color, and optionally kerning if [code]next[/code] is passed. clipping the width. [code]position[/code] specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character.
|
||||||
|
If [code]outline[/code] is [code]true[/code], the outline of the character is drawn instead of the character itself.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_ascent" qualifiers="const">
|
<method name="get_ascent" qualifiers="const">
|
||||||
|
|
Loading…
Reference in a new issue