class_textline.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TextLine.xml.
  6. .. _class_TextLine:
  7. TextLine
  8. ========
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Holds a line of text.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Abstraction over :ref:`TextServer<class_TextServer>` for handling a single line of text.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  21. | :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`alignment<class_TextLine_property_alignment>` | ``0`` |
  22. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  23. | :ref:`Direction<enum_TextServer_Direction>` | :ref:`direction<class_TextLine_property_direction>` | ``0`` |
  24. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  25. | :ref:`String<class_String>` | :ref:`ellipsis_char<class_TextLine_property_ellipsis_char>` | ``"…"`` |
  26. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  27. | |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] | :ref:`flags<class_TextLine_property_flags>` | ``3`` |
  28. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  29. | :ref:`Orientation<enum_TextServer_Orientation>` | :ref:`orientation<class_TextLine_property_orientation>` | ``0`` |
  30. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  31. | :ref:`bool<class_bool>` | :ref:`preserve_control<class_TextLine_property_preserve_control>` | ``false`` |
  32. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  33. | :ref:`bool<class_bool>` | :ref:`preserve_invalid<class_TextLine_property_preserve_invalid>` | ``true`` |
  34. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  35. | :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` | :ref:`text_overrun_behavior<class_TextLine_property_text_overrun_behavior>` | ``3`` |
  36. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  37. | :ref:`float<class_float>` | :ref:`width<class_TextLine_property_width>` | ``-1.0`` |
  38. +---------------------------------------------------------------------------+-----------------------------------------------------------------------------+-----------+
  39. .. rst-class:: classref-reftable-group
  40. Methods
  41. -------
  42. .. table::
  43. :widths: auto
  44. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`bool<class_bool>` | :ref:`add_object<class_TextLine_method_add_object>`\ (\ key\: :ref:`Variant<class_Variant>`, size\: :ref:`Vector2<class_Vector2>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, length\: :ref:`int<class_int>` = 1, baseline\: :ref:`float<class_float>` = 0.0\ ) |
  46. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`bool<class_bool>` | :ref:`add_string<class_TextLine_method_add_string>`\ (\ text\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>`, language\: :ref:`String<class_String>` = "", meta\: :ref:`Variant<class_Variant>` = null\ ) |
  48. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | |void| | :ref:`clear<class_TextLine_method_clear>`\ (\ ) |
  50. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | |void| | :ref:`draw<class_TextLine_method_draw>`\ (\ canvas\: :ref:`RID<class_RID>`, pos\: :ref:`Vector2<class_Vector2>`, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), oversampling\: :ref:`float<class_float>` = 0.0\ ) |const| |
  52. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | |void| | :ref:`draw_outline<class_TextLine_method_draw_outline>`\ (\ canvas\: :ref:`RID<class_RID>`, pos\: :ref:`Vector2<class_Vector2>`, outline_size\: :ref:`int<class_int>` = 1, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), oversampling\: :ref:`float<class_float>` = 0.0\ ) |const| |
  54. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`Direction<enum_TextServer_Direction>` | :ref:`get_inferred_direction<class_TextLine_method_get_inferred_direction>`\ (\ ) |const| |
  56. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`float<class_float>` | :ref:`get_line_ascent<class_TextLine_method_get_line_ascent>`\ (\ ) |const| |
  58. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`float<class_float>` | :ref:`get_line_descent<class_TextLine_method_get_line_descent>`\ (\ ) |const| |
  60. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`get_line_underline_position<class_TextLine_method_get_line_underline_position>`\ (\ ) |const| |
  62. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`float<class_float>` | :ref:`get_line_underline_thickness<class_TextLine_method_get_line_underline_thickness>`\ (\ ) |const| |
  64. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`float<class_float>` | :ref:`get_line_width<class_TextLine_method_get_line_width>`\ (\ ) |const| |
  66. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`Rect2<class_Rect2>` | :ref:`get_object_rect<class_TextLine_method_get_object_rect>`\ (\ key\: :ref:`Variant<class_Variant>`\ ) |const| |
  68. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`Array<class_Array>` | :ref:`get_objects<class_TextLine_method_get_objects>`\ (\ ) |const| |
  70. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`RID<class_RID>` | :ref:`get_rid<class_TextLine_method_get_rid>`\ (\ ) |const| |
  72. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`Vector2<class_Vector2>` | :ref:`get_size<class_TextLine_method_get_size>`\ (\ ) |const| |
  74. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`int<class_int>` | :ref:`hit_test<class_TextLine_method_hit_test>`\ (\ coords\: :ref:`float<class_float>`\ ) |const| |
  76. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`bool<class_bool>` | :ref:`resize_object<class_TextLine_method_resize_object>`\ (\ key\: :ref:`Variant<class_Variant>`, size\: :ref:`Vector2<class_Vector2>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, baseline\: :ref:`float<class_float>` = 0.0\ ) |
  78. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | |void| | :ref:`set_bidi_override<class_TextLine_method_set_bidi_override>`\ (\ override\: :ref:`Array<class_Array>`\ ) |
  80. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | |void| | :ref:`tab_align<class_TextLine_method_tab_align>`\ (\ tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>`\ ) |
  82. +---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. .. rst-class:: classref-section-separator
  84. ----
  85. .. rst-class:: classref-descriptions-group
  86. Property Descriptions
  87. ---------------------
  88. .. _class_TextLine_property_alignment:
  89. .. rst-class:: classref-property
  90. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **alignment** = ``0`` :ref:`🔗<class_TextLine_property_alignment>`
  91. .. rst-class:: classref-property-setget
  92. - |void| **set_horizontal_alignment**\ (\ value\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ )
  93. - :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **get_horizontal_alignment**\ (\ )
  94. Sets text alignment within the line as if the line was horizontal.
  95. .. rst-class:: classref-item-separator
  96. ----
  97. .. _class_TextLine_property_direction:
  98. .. rst-class:: classref-property
  99. :ref:`Direction<enum_TextServer_Direction>` **direction** = ``0`` :ref:`🔗<class_TextLine_property_direction>`
  100. .. rst-class:: classref-property-setget
  101. - |void| **set_direction**\ (\ value\: :ref:`Direction<enum_TextServer_Direction>`\ )
  102. - :ref:`Direction<enum_TextServer_Direction>` **get_direction**\ (\ )
  103. Text writing direction.
  104. .. rst-class:: classref-item-separator
  105. ----
  106. .. _class_TextLine_property_ellipsis_char:
  107. .. rst-class:: classref-property
  108. :ref:`String<class_String>` **ellipsis_char** = ``"…"`` :ref:`🔗<class_TextLine_property_ellipsis_char>`
  109. .. rst-class:: classref-property-setget
  110. - |void| **set_ellipsis_char**\ (\ value\: :ref:`String<class_String>`\ )
  111. - :ref:`String<class_String>` **get_ellipsis_char**\ (\ )
  112. Ellipsis character used for text clipping.
  113. .. rst-class:: classref-item-separator
  114. ----
  115. .. _class_TextLine_property_flags:
  116. .. rst-class:: classref-property
  117. |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **flags** = ``3`` :ref:`🔗<class_TextLine_property_flags>`
  118. .. rst-class:: classref-property-setget
  119. - |void| **set_flags**\ (\ value\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\]\ )
  120. - |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **get_flags**\ (\ )
  121. Line alignment rules. For more info see :ref:`TextServer<class_TextServer>`.
  122. .. rst-class:: classref-item-separator
  123. ----
  124. .. _class_TextLine_property_orientation:
  125. .. rst-class:: classref-property
  126. :ref:`Orientation<enum_TextServer_Orientation>` **orientation** = ``0`` :ref:`🔗<class_TextLine_property_orientation>`
  127. .. rst-class:: classref-property-setget
  128. - |void| **set_orientation**\ (\ value\: :ref:`Orientation<enum_TextServer_Orientation>`\ )
  129. - :ref:`Orientation<enum_TextServer_Orientation>` **get_orientation**\ (\ )
  130. Text orientation.
  131. .. rst-class:: classref-item-separator
  132. ----
  133. .. _class_TextLine_property_preserve_control:
  134. .. rst-class:: classref-property
  135. :ref:`bool<class_bool>` **preserve_control** = ``false`` :ref:`🔗<class_TextLine_property_preserve_control>`
  136. .. rst-class:: classref-property-setget
  137. - |void| **set_preserve_control**\ (\ value\: :ref:`bool<class_bool>`\ )
  138. - :ref:`bool<class_bool>` **get_preserve_control**\ (\ )
  139. If set to ``true`` text will display control characters.
  140. .. rst-class:: classref-item-separator
  141. ----
  142. .. _class_TextLine_property_preserve_invalid:
  143. .. rst-class:: classref-property
  144. :ref:`bool<class_bool>` **preserve_invalid** = ``true`` :ref:`🔗<class_TextLine_property_preserve_invalid>`
  145. .. rst-class:: classref-property-setget
  146. - |void| **set_preserve_invalid**\ (\ value\: :ref:`bool<class_bool>`\ )
  147. - :ref:`bool<class_bool>` **get_preserve_invalid**\ (\ )
  148. If set to ``true`` text will display invalid characters.
  149. .. rst-class:: classref-item-separator
  150. ----
  151. .. _class_TextLine_property_text_overrun_behavior:
  152. .. rst-class:: classref-property
  153. :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` **text_overrun_behavior** = ``3`` :ref:`🔗<class_TextLine_property_text_overrun_behavior>`
  154. .. rst-class:: classref-property-setget
  155. - |void| **set_text_overrun_behavior**\ (\ value\: :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>`\ )
  156. - :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` **get_text_overrun_behavior**\ (\ )
  157. The clipping behavior when the text exceeds the text line's set width.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_TextLine_property_width:
  161. .. rst-class:: classref-property
  162. :ref:`float<class_float>` **width** = ``-1.0`` :ref:`🔗<class_TextLine_property_width>`
  163. .. rst-class:: classref-property-setget
  164. - |void| **set_width**\ (\ value\: :ref:`float<class_float>`\ )
  165. - :ref:`float<class_float>` **get_width**\ (\ )
  166. Text line width.
  167. .. rst-class:: classref-section-separator
  168. ----
  169. .. rst-class:: classref-descriptions-group
  170. Method Descriptions
  171. -------------------
  172. .. _class_TextLine_method_add_object:
  173. .. rst-class:: classref-method
  174. :ref:`bool<class_bool>` **add_object**\ (\ key\: :ref:`Variant<class_Variant>`, size\: :ref:`Vector2<class_Vector2>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, length\: :ref:`int<class_int>` = 1, baseline\: :ref:`float<class_float>` = 0.0\ ) :ref:`🔗<class_TextLine_method_add_object>`
  175. Adds inline object to the text buffer, ``key`` must be unique. In the text, object is represented as ``length`` object replacement characters.
  176. .. rst-class:: classref-item-separator
  177. ----
  178. .. _class_TextLine_method_add_string:
  179. .. rst-class:: classref-method
  180. :ref:`bool<class_bool>` **add_string**\ (\ text\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>`, language\: :ref:`String<class_String>` = "", meta\: :ref:`Variant<class_Variant>` = null\ ) :ref:`🔗<class_TextLine_method_add_string>`
  181. Adds text span and font to draw it.
  182. .. rst-class:: classref-item-separator
  183. ----
  184. .. _class_TextLine_method_clear:
  185. .. rst-class:: classref-method
  186. |void| **clear**\ (\ ) :ref:`🔗<class_TextLine_method_clear>`
  187. Clears text line (removes text and inline objects).
  188. .. rst-class:: classref-item-separator
  189. ----
  190. .. _class_TextLine_method_draw:
  191. .. rst-class:: classref-method
  192. |void| **draw**\ (\ canvas\: :ref:`RID<class_RID>`, pos\: :ref:`Vector2<class_Vector2>`, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), oversampling\: :ref:`float<class_float>` = 0.0\ ) |const| :ref:`🔗<class_TextLine_method_draw>`
  193. Draw text into a canvas item at a given position, with ``color``. ``pos`` specifies the top left corner of the bounding box. If ``oversampling`` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_TextLine_method_draw_outline:
  197. .. rst-class:: classref-method
  198. |void| **draw_outline**\ (\ canvas\: :ref:`RID<class_RID>`, pos\: :ref:`Vector2<class_Vector2>`, outline_size\: :ref:`int<class_int>` = 1, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), oversampling\: :ref:`float<class_float>` = 0.0\ ) |const| :ref:`🔗<class_TextLine_method_draw_outline>`
  199. Draw text into a canvas item at a given position, with ``color``. ``pos`` specifies the top left corner of the bounding box. If ``oversampling`` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
  200. .. rst-class:: classref-item-separator
  201. ----
  202. .. _class_TextLine_method_get_inferred_direction:
  203. .. rst-class:: classref-method
  204. :ref:`Direction<enum_TextServer_Direction>` **get_inferred_direction**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_inferred_direction>`
  205. Returns the text writing direction inferred by the BiDi algorithm.
  206. .. rst-class:: classref-item-separator
  207. ----
  208. .. _class_TextLine_method_get_line_ascent:
  209. .. rst-class:: classref-method
  210. :ref:`float<class_float>` **get_line_ascent**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_line_ascent>`
  211. Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).
  212. .. rst-class:: classref-item-separator
  213. ----
  214. .. _class_TextLine_method_get_line_descent:
  215. .. rst-class:: classref-method
  216. :ref:`float<class_float>` **get_line_descent**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_line_descent>`
  217. Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).
  218. .. rst-class:: classref-item-separator
  219. ----
  220. .. _class_TextLine_method_get_line_underline_position:
  221. .. rst-class:: classref-method
  222. :ref:`float<class_float>` **get_line_underline_position**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_line_underline_position>`
  223. Returns pixel offset of the underline below the baseline.
  224. .. rst-class:: classref-item-separator
  225. ----
  226. .. _class_TextLine_method_get_line_underline_thickness:
  227. .. rst-class:: classref-method
  228. :ref:`float<class_float>` **get_line_underline_thickness**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_line_underline_thickness>`
  229. Returns thickness of the underline.
  230. .. rst-class:: classref-item-separator
  231. ----
  232. .. _class_TextLine_method_get_line_width:
  233. .. rst-class:: classref-method
  234. :ref:`float<class_float>` **get_line_width**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_line_width>`
  235. Returns width (for horizontal layout) or height (for vertical) of the text.
  236. .. rst-class:: classref-item-separator
  237. ----
  238. .. _class_TextLine_method_get_object_rect:
  239. .. rst-class:: classref-method
  240. :ref:`Rect2<class_Rect2>` **get_object_rect**\ (\ key\: :ref:`Variant<class_Variant>`\ ) |const| :ref:`🔗<class_TextLine_method_get_object_rect>`
  241. Returns bounding rectangle of the inline object.
  242. .. rst-class:: classref-item-separator
  243. ----
  244. .. _class_TextLine_method_get_objects:
  245. .. rst-class:: classref-method
  246. :ref:`Array<class_Array>` **get_objects**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_objects>`
  247. Returns array of inline objects.
  248. .. rst-class:: classref-item-separator
  249. ----
  250. .. _class_TextLine_method_get_rid:
  251. .. rst-class:: classref-method
  252. :ref:`RID<class_RID>` **get_rid**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_rid>`
  253. Returns TextServer buffer RID.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_TextLine_method_get_size:
  257. .. rst-class:: classref-method
  258. :ref:`Vector2<class_Vector2>` **get_size**\ (\ ) |const| :ref:`🔗<class_TextLine_method_get_size>`
  259. Returns size of the bounding box of the text.
  260. .. rst-class:: classref-item-separator
  261. ----
  262. .. _class_TextLine_method_hit_test:
  263. .. rst-class:: classref-method
  264. :ref:`int<class_int>` **hit_test**\ (\ coords\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_TextLine_method_hit_test>`
  265. Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.
  266. .. rst-class:: classref-item-separator
  267. ----
  268. .. _class_TextLine_method_resize_object:
  269. .. rst-class:: classref-method
  270. :ref:`bool<class_bool>` **resize_object**\ (\ key\: :ref:`Variant<class_Variant>`, size\: :ref:`Vector2<class_Vector2>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, baseline\: :ref:`float<class_float>` = 0.0\ ) :ref:`🔗<class_TextLine_method_resize_object>`
  271. Sets new size and alignment of embedded object.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_TextLine_method_set_bidi_override:
  275. .. rst-class:: classref-method
  276. |void| **set_bidi_override**\ (\ override\: :ref:`Array<class_Array>`\ ) :ref:`🔗<class_TextLine_method_set_bidi_override>`
  277. Overrides BiDi for the structured text.
  278. Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately.
  279. .. rst-class:: classref-item-separator
  280. ----
  281. .. _class_TextLine_method_tab_align:
  282. .. rst-class:: classref-method
  283. |void| **tab_align**\ (\ tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>`\ ) :ref:`🔗<class_TextLine_method_tab_align>`
  284. Aligns text to the given tab-stops.
  285. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  286. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  287. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  288. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  289. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  290. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  291. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  292. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  293. .. |void| replace:: :abbr:`void (No return value.)`