mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #110340 from bruvzg/ts_dup_r
[RTL] Use separate paragraph copy for the partially visible paragraphs.
This commit is contained in:
@@ -58,6 +58,12 @@
|
||||
Draw 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="duplicate" qualifiers="const">
|
||||
<return type="TextLine" />
|
||||
<description>
|
||||
Duplicates this [TextLine].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_inferred_direction" qualifiers="const">
|
||||
<return type="int" enum="TextServer.Direction" />
|
||||
<description>
|
||||
@@ -119,6 +125,13 @@
|
||||
Returns size of the bounding box of the text.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_object" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="key" type="Variant" />
|
||||
<description>
|
||||
Returns [code]true[/code] if an object with [param key] is embedded in this line.
|
||||
</description>
|
||||
</method>
|
||||
<method name="hit_test" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="coords" type="float" />
|
||||
|
||||
@@ -110,6 +110,12 @@
|
||||
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="duplicate" qualifiers="const">
|
||||
<return type="TextParagraph" />
|
||||
<description>
|
||||
Duplicates this [TextParagraph].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_dropcap_lines" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
@@ -235,6 +241,13 @@
|
||||
Returns the size of the bounding box of the paragraph.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_object" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="key" type="Variant" />
|
||||
<description>
|
||||
Returns [code]true[/code] if an object with [param key] is embedded in this shaped text buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="hit_test" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="coords" type="Vector2" />
|
||||
|
||||
@@ -1418,6 +1418,13 @@
|
||||
[param clip_l] and [param clip_r] are offsets relative to [param pos], going to the right in horizontal layout and downward in vertical layout. If [param clip_l] is not negative, glyphs starting before the offset are clipped. If [param clip_r] is not negative, glyphs ending after the offset are clipped.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_duplicate">
|
||||
<return type="RID" />
|
||||
<param index="0" name="rid" type="RID" />
|
||||
<description>
|
||||
Duplicates shaped text buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_fit_to_width">
|
||||
<return type="float" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
@@ -1687,6 +1694,14 @@
|
||||
Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_has_object" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="key" type="Variant" />
|
||||
<description>
|
||||
Returns [code]true[/code] if an object with [param key] is embedded in this shaped text buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_has_visible_chars" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
|
||||
@@ -1388,6 +1388,13 @@
|
||||
Draw the outline of the shaped text into a canvas item at a given position, with [param color]. [param pos] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_shaped_text_duplicate" qualifiers="virtual required">
|
||||
<return type="RID" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<description>
|
||||
Duplicates shaped text buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_shaped_text_fit_to_width" qualifiers="virtual">
|
||||
<return type="float" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
@@ -1655,6 +1662,14 @@
|
||||
Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_shaped_text_has_object" qualifiers="virtual required const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="key" type="Variant" />
|
||||
<description>
|
||||
Returns [code]true[/code] if an object with [param key] is embedded in this shaped text buffer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_shaped_text_hit_test_grapheme" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user