Replace global oversampling with overrideable per-viewport oversampling.
This commit is contained in:
@@ -49,8 +49,9 @@
|
||||
<param index="1" name="pos" type="Vector2" />
|
||||
<param index="2" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="3" name="dc_color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="4" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw all lines of the text and drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw all lines of the text and drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="draw_dropcap" qualifiers="const">
|
||||
@@ -58,8 +59,9 @@
|
||||
<param index="0" name="canvas" type="RID" />
|
||||
<param index="1" name="pos" type="Vector2" />
|
||||
<param index="2" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="3" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="draw_dropcap_outline" qualifiers="const">
|
||||
@@ -68,8 +70,9 @@
|
||||
<param index="1" name="pos" type="Vector2" />
|
||||
<param index="2" name="outline_size" type="int" default="1" />
|
||||
<param index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="4" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw drop cap outline into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw drop cap outline into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="draw_line" qualifiers="const">
|
||||
@@ -78,8 +81,9 @@
|
||||
<param index="1" name="pos" type="Vector2" />
|
||||
<param index="2" name="line" type="int" />
|
||||
<param index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="4" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw single line of text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw single line of text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="draw_line_outline" qualifiers="const">
|
||||
@@ -89,8 +93,9 @@
|
||||
<param index="2" name="line" type="int" />
|
||||
<param index="3" name="outline_size" type="int" default="1" />
|
||||
<param index="4" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="5" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw outline of the single line of text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw outline of the single line of text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="draw_outline" qualifiers="const">
|
||||
@@ -100,8 +105,9 @@
|
||||
<param index="2" name="outline_size" type="int" default="1" />
|
||||
<param index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="4" name="dc_color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="5" name="oversampling" type="float" default="0.0" />
|
||||
<description>
|
||||
Draw outlines of all lines of the text and drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
|
||||
Draw outlines of all lines of the text and drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_dropcap_lines" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user