2
0

class_label.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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/Label.xml.
  6. .. _class_Label:
  7. Label
  8. =====
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Displays plain text in a line or wrapped inside a rectangle. For formatted text, use :ref:`RichTextLabel<class_RichTextLabel>`.
  11. Description
  12. -----------
  13. Label displays plain text on the screen. It gives you control over the horizontal and vertical alignment and can wrap the text inside the node's bounding rectangle. It doesn't support bold, italics, or other formatting. For that, use :ref:`RichTextLabel<class_RichTextLabel>` instead.
  14. \ **Note:** Contrarily to most other :ref:`Control<class_Control>`\ s, Label's :ref:`Control.mouse_filter<class_Control_property_mouse_filter>` defaults to :ref:`Control.MOUSE_FILTER_IGNORE<class_Control_constant_MOUSE_FILTER_IGNORE>` (i.e. it doesn't react to mouse input events). This implies that a label won't display any configured :ref:`Control.hint_tooltip<class_Control_property_hint_tooltip>`, unless you change its mouse filter.
  15. Tutorials
  16. ---------
  17. - `2D Dodge The Creeps Demo <https://godotengine.org/asset-library/asset/515>`__
  18. Properties
  19. ----------
  20. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  21. | :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` | :ref:`autowrap_mode<class_Label_property_autowrap_mode>` | ``0`` |
  22. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`clip_text<class_Label_property_clip_text>` | ``false`` |
  24. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  25. | :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`horizontal_alignment<class_Label_property_horizontal_alignment>` | ``0`` |
  26. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  27. | :ref:`LabelSettings<class_LabelSettings>` | :ref:`label_settings<class_Label_property_label_settings>` | |
  28. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  29. | :ref:`String<class_String>` | :ref:`language<class_Label_property_language>` | ``""`` |
  30. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  31. | :ref:`int<class_int>` | :ref:`lines_skipped<class_Label_property_lines_skipped>` | ``0`` |
  32. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`max_lines_visible<class_Label_property_max_lines_visible>` | ``-1`` |
  34. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  35. | :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``2`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
  36. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`percent_visible<class_Label_property_percent_visible>` | ``1.0`` |
  38. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  39. | :ref:`int<class_int>` | size_flags_vertical | ``4`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
  40. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  41. | :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` | :ref:`structured_text_bidi_override<class_Label_property_structured_text_bidi_override>` | ``0`` |
  42. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  43. | :ref:`Array<class_Array>` | :ref:`structured_text_bidi_override_options<class_Label_property_structured_text_bidi_override_options>` | ``[]`` |
  44. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  45. | :ref:`String<class_String>` | :ref:`text<class_Label_property_text>` | ``""`` |
  46. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  47. | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_Label_property_text_direction>` | ``0`` |
  48. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  49. | :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` | :ref:`text_overrun_behavior<class_Label_property_text_overrun_behavior>` | ``0`` |
  50. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`uppercase<class_Label_property_uppercase>` | ``false`` |
  52. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  53. | :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` | :ref:`vertical_alignment<class_Label_property_vertical_alignment>` | ``0`` |
  54. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`visible_characters<class_Label_property_visible_characters>` | ``-1`` |
  56. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  57. | :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` | :ref:`visible_characters_behavior<class_Label_property_visible_characters_behavior>` | ``0`` |
  58. +-----------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
  59. Methods
  60. -------
  61. +-----------------------+--------------------------------------------------------------------------------------------------------------+
  62. | :ref:`int<class_int>` | :ref:`get_line_count<class_Label_method_get_line_count>` **(** **)** |const| |
  63. +-----------------------+--------------------------------------------------------------------------------------------------------------+
  64. | :ref:`int<class_int>` | :ref:`get_line_height<class_Label_method_get_line_height>` **(** :ref:`int<class_int>` line=-1 **)** |const| |
  65. +-----------------------+--------------------------------------------------------------------------------------------------------------+
  66. | :ref:`int<class_int>` | :ref:`get_total_character_count<class_Label_method_get_total_character_count>` **(** **)** |const| |
  67. +-----------------------+--------------------------------------------------------------------------------------------------------------+
  68. | :ref:`int<class_int>` | :ref:`get_visible_line_count<class_Label_method_get_visible_line_count>` **(** **)** |const| |
  69. +-----------------------+--------------------------------------------------------------------------------------------------------------+
  70. Theme Properties
  71. ----------------
  72. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  73. | :ref:`Color<class_Color>` | :ref:`font_color<class_Label_theme_color_font_color>` | ``Color(1, 1, 1, 1)`` |
  74. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  75. | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_Label_theme_color_font_outline_color>` | ``Color(1, 1, 1, 1)`` |
  76. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  77. | :ref:`Color<class_Color>` | :ref:`font_shadow_color<class_Label_theme_color_font_shadow_color>` | ``Color(0, 0, 0, 0)`` |
  78. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  79. | :ref:`int<class_int>` | :ref:`line_spacing<class_Label_theme_constant_line_spacing>` | ``3`` |
  80. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  81. | :ref:`int<class_int>` | :ref:`outline_size<class_Label_theme_constant_outline_size>` | ``0`` |
  82. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  83. | :ref:`int<class_int>` | :ref:`shadow_offset_x<class_Label_theme_constant_shadow_offset_x>` | ``1`` |
  84. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  85. | :ref:`int<class_int>` | :ref:`shadow_offset_y<class_Label_theme_constant_shadow_offset_y>` | ``1`` |
  86. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  87. | :ref:`int<class_int>` | :ref:`shadow_outline_size<class_Label_theme_constant_shadow_outline_size>` | ``1`` |
  88. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  89. | :ref:`Font<class_Font>` | :ref:`font<class_Label_theme_font_font>` | |
  90. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  91. | :ref:`int<class_int>` | :ref:`font_size<class_Label_theme_font_size_font_size>` | |
  92. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  93. | :ref:`StyleBox<class_StyleBox>` | :ref:`normal<class_Label_theme_style_normal>` | |
  94. +---------------------------------+----------------------------------------------------------------------------+-----------------------+
  95. Property Descriptions
  96. ---------------------
  97. .. _class_Label_property_autowrap_mode:
  98. - :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **autowrap_mode**
  99. +-----------+--------------------------+
  100. | *Default* | ``0`` |
  101. +-----------+--------------------------+
  102. | *Setter* | set_autowrap_mode(value) |
  103. +-----------+--------------------------+
  104. | *Getter* | get_autowrap_mode() |
  105. +-----------+--------------------------+
  106. If set to something other than :ref:`TextServer.AUTOWRAP_OFF<class_TextServer_constant_AUTOWRAP_OFF>`, the text gets wrapped inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. To see how each mode behaves, see :ref:`AutowrapMode<enum_TextServer_AutowrapMode>`.
  107. ----
  108. .. _class_Label_property_clip_text:
  109. - :ref:`bool<class_bool>` **clip_text**
  110. +-----------+----------------------+
  111. | *Default* | ``false`` |
  112. +-----------+----------------------+
  113. | *Setter* | set_clip_text(value) |
  114. +-----------+----------------------+
  115. | *Getter* | is_clipping_text() |
  116. +-----------+----------------------+
  117. If ``true``, the Label only shows the text that fits inside its bounding rectangle and will clip text horizontally.
  118. ----
  119. .. _class_Label_property_horizontal_alignment:
  120. - :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **horizontal_alignment**
  121. +-----------+---------------------------------+
  122. | *Default* | ``0`` |
  123. +-----------+---------------------------------+
  124. | *Setter* | set_horizontal_alignment(value) |
  125. +-----------+---------------------------------+
  126. | *Getter* | get_horizontal_alignment() |
  127. +-----------+---------------------------------+
  128. Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` constants.
  129. ----
  130. .. _class_Label_property_label_settings:
  131. - :ref:`LabelSettings<class_LabelSettings>` **label_settings**
  132. +----------+---------------------------+
  133. | *Setter* | set_label_settings(value) |
  134. +----------+---------------------------+
  135. | *Getter* | get_label_settings() |
  136. +----------+---------------------------+
  137. ----
  138. .. _class_Label_property_language:
  139. - :ref:`String<class_String>` **language**
  140. +-----------+---------------------+
  141. | *Default* | ``""`` |
  142. +-----------+---------------------+
  143. | *Setter* | set_language(value) |
  144. +-----------+---------------------+
  145. | *Getter* | get_language() |
  146. +-----------+---------------------+
  147. Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
  148. ----
  149. .. _class_Label_property_lines_skipped:
  150. - :ref:`int<class_int>` **lines_skipped**
  151. +-----------+--------------------------+
  152. | *Default* | ``0`` |
  153. +-----------+--------------------------+
  154. | *Setter* | set_lines_skipped(value) |
  155. +-----------+--------------------------+
  156. | *Getter* | get_lines_skipped() |
  157. +-----------+--------------------------+
  158. The node ignores the first ``lines_skipped`` lines before it starts to display text.
  159. ----
  160. .. _class_Label_property_max_lines_visible:
  161. - :ref:`int<class_int>` **max_lines_visible**
  162. +-----------+------------------------------+
  163. | *Default* | ``-1`` |
  164. +-----------+------------------------------+
  165. | *Setter* | set_max_lines_visible(value) |
  166. +-----------+------------------------------+
  167. | *Getter* | get_max_lines_visible() |
  168. +-----------+------------------------------+
  169. Limits the lines of text the node shows on screen.
  170. ----
  171. .. _class_Label_property_percent_visible:
  172. - :ref:`float<class_float>` **percent_visible**
  173. +-----------+----------------------------+
  174. | *Default* | ``1.0`` |
  175. +-----------+----------------------------+
  176. | *Setter* | set_percent_visible(value) |
  177. +-----------+----------------------------+
  178. | *Getter* | get_percent_visible() |
  179. +-----------+----------------------------+
  180. Limits the amount of visible characters. If you set ``percent_visible`` to 0.5, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.
  181. \ **Note:** Setting this property updates :ref:`visible_characters<class_Label_property_visible_characters>` based on current :ref:`get_total_character_count<class_Label_method_get_total_character_count>`.
  182. ----
  183. .. _class_Label_property_structured_text_bidi_override:
  184. - :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **structured_text_bidi_override**
  185. +-----------+------------------------------------------+
  186. | *Default* | ``0`` |
  187. +-----------+------------------------------------------+
  188. | *Setter* | set_structured_text_bidi_override(value) |
  189. +-----------+------------------------------------------+
  190. | *Getter* | get_structured_text_bidi_override() |
  191. +-----------+------------------------------------------+
  192. Set BiDi algorithm override for the structured text.
  193. ----
  194. .. _class_Label_property_structured_text_bidi_override_options:
  195. - :ref:`Array<class_Array>` **structured_text_bidi_override_options**
  196. +-----------+--------------------------------------------------+
  197. | *Default* | ``[]`` |
  198. +-----------+--------------------------------------------------+
  199. | *Setter* | set_structured_text_bidi_override_options(value) |
  200. +-----------+--------------------------------------------------+
  201. | *Getter* | get_structured_text_bidi_override_options() |
  202. +-----------+--------------------------------------------------+
  203. Set additional options for BiDi override.
  204. ----
  205. .. _class_Label_property_text:
  206. - :ref:`String<class_String>` **text**
  207. +-----------+-----------------+
  208. | *Default* | ``""`` |
  209. +-----------+-----------------+
  210. | *Setter* | set_text(value) |
  211. +-----------+-----------------+
  212. | *Getter* | get_text() |
  213. +-----------+-----------------+
  214. The text to display on screen.
  215. ----
  216. .. _class_Label_property_text_direction:
  217. - :ref:`TextDirection<enum_Control_TextDirection>` **text_direction**
  218. +-----------+---------------------------+
  219. | *Default* | ``0`` |
  220. +-----------+---------------------------+
  221. | *Setter* | set_text_direction(value) |
  222. +-----------+---------------------------+
  223. | *Getter* | get_text_direction() |
  224. +-----------+---------------------------+
  225. Base text writing direction.
  226. ----
  227. .. _class_Label_property_text_overrun_behavior:
  228. - :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` **text_overrun_behavior**
  229. +-----------+----------------------------------+
  230. | *Default* | ``0`` |
  231. +-----------+----------------------------------+
  232. | *Setter* | set_text_overrun_behavior(value) |
  233. +-----------+----------------------------------+
  234. | *Getter* | get_text_overrun_behavior() |
  235. +-----------+----------------------------------+
  236. Sets the clipping behavior when the text exceeds the node's bounding rectangle. See :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` for a description of all modes.
  237. ----
  238. .. _class_Label_property_uppercase:
  239. - :ref:`bool<class_bool>` **uppercase**
  240. +-----------+----------------------+
  241. | *Default* | ``false`` |
  242. +-----------+----------------------+
  243. | *Setter* | set_uppercase(value) |
  244. +-----------+----------------------+
  245. | *Getter* | is_uppercase() |
  246. +-----------+----------------------+
  247. If ``true``, all the text displays as UPPERCASE.
  248. ----
  249. .. _class_Label_property_vertical_alignment:
  250. - :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **vertical_alignment**
  251. +-----------+-------------------------------+
  252. | *Default* | ``0`` |
  253. +-----------+-------------------------------+
  254. | *Setter* | set_vertical_alignment(value) |
  255. +-----------+-------------------------------+
  256. | *Getter* | get_vertical_alignment() |
  257. +-----------+-------------------------------+
  258. Controls the text's vertical alignment. Supports top, center, bottom, and fill. Set it to one of the :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` constants.
  259. ----
  260. .. _class_Label_property_visible_characters:
  261. - :ref:`int<class_int>` **visible_characters**
  262. +-----------+-------------------------------+
  263. | *Default* | ``-1`` |
  264. +-----------+-------------------------------+
  265. | *Setter* | set_visible_characters(value) |
  266. +-----------+-------------------------------+
  267. | *Getter* | get_visible_characters() |
  268. +-----------+-------------------------------+
  269. Restricts the number of characters to display. Set to -1 to disable.
  270. \ **Note:** Setting this property updates :ref:`percent_visible<class_Label_property_percent_visible>` based on current :ref:`get_total_character_count<class_Label_method_get_total_character_count>`.
  271. ----
  272. .. _class_Label_property_visible_characters_behavior:
  273. - :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` **visible_characters_behavior**
  274. +-----------+----------------------------------------+
  275. | *Default* | ``0`` |
  276. +-----------+----------------------------------------+
  277. | *Setter* | set_visible_characters_behavior(value) |
  278. +-----------+----------------------------------------+
  279. | *Getter* | get_visible_characters_behavior() |
  280. +-----------+----------------------------------------+
  281. Sets the clipping behavior when :ref:`visible_characters<class_Label_property_visible_characters>` or :ref:`percent_visible<class_Label_property_percent_visible>` is set. See :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` for more info.
  282. Method Descriptions
  283. -------------------
  284. .. _class_Label_method_get_line_count:
  285. - :ref:`int<class_int>` **get_line_count** **(** **)** |const|
  286. Returns the amount of lines of text the Label has.
  287. ----
  288. .. _class_Label_method_get_line_height:
  289. - :ref:`int<class_int>` **get_line_height** **(** :ref:`int<class_int>` line=-1 **)** |const|
  290. Returns the height of the line ``line``.
  291. If ``line`` is set to ``-1``, returns the biggest line height.
  292. If there're no lines returns font size in pixels.
  293. ----
  294. .. _class_Label_method_get_total_character_count:
  295. - :ref:`int<class_int>` **get_total_character_count** **(** **)** |const|
  296. Returns the total number of printable characters in the text (excluding spaces and newlines).
  297. ----
  298. .. _class_Label_method_get_visible_line_count:
  299. - :ref:`int<class_int>` **get_visible_line_count** **(** **)** |const|
  300. Returns the number of lines shown. Useful if the ``Label``'s height cannot currently display all lines.
  301. Theme Property Descriptions
  302. ---------------------------
  303. .. _class_Label_theme_color_font_color:
  304. - :ref:`Color<class_Color>` **font_color**
  305. +-----------+-----------------------+
  306. | *Default* | ``Color(1, 1, 1, 1)`` |
  307. +-----------+-----------------------+
  308. Default text :ref:`Color<class_Color>` of the ``Label``.
  309. ----
  310. .. _class_Label_theme_color_font_outline_color:
  311. - :ref:`Color<class_Color>` **font_outline_color**
  312. +-----------+-----------------------+
  313. | *Default* | ``Color(1, 1, 1, 1)`` |
  314. +-----------+-----------------------+
  315. The tint of text outline.
  316. ----
  317. .. _class_Label_theme_color_font_shadow_color:
  318. - :ref:`Color<class_Color>` **font_shadow_color**
  319. +-----------+-----------------------+
  320. | *Default* | ``Color(0, 0, 0, 0)`` |
  321. +-----------+-----------------------+
  322. :ref:`Color<class_Color>` of the text's shadow effect.
  323. ----
  324. .. _class_Label_theme_constant_line_spacing:
  325. - :ref:`int<class_int>` **line_spacing**
  326. +-----------+-------+
  327. | *Default* | ``3`` |
  328. +-----------+-------+
  329. Vertical space between lines in multiline ``Label``.
  330. ----
  331. .. _class_Label_theme_constant_outline_size:
  332. - :ref:`int<class_int>` **outline_size**
  333. +-----------+-------+
  334. | *Default* | ``0`` |
  335. +-----------+-------+
  336. Text outline size.
  337. ----
  338. .. _class_Label_theme_constant_shadow_offset_x:
  339. - :ref:`int<class_int>` **shadow_offset_x**
  340. +-----------+-------+
  341. | *Default* | ``1`` |
  342. +-----------+-------+
  343. The horizontal offset of the text's shadow.
  344. ----
  345. .. _class_Label_theme_constant_shadow_offset_y:
  346. - :ref:`int<class_int>` **shadow_offset_y**
  347. +-----------+-------+
  348. | *Default* | ``1`` |
  349. +-----------+-------+
  350. The vertical offset of the text's shadow.
  351. ----
  352. .. _class_Label_theme_constant_shadow_outline_size:
  353. - :ref:`int<class_int>` **shadow_outline_size**
  354. +-----------+-------+
  355. | *Default* | ``1`` |
  356. +-----------+-------+
  357. The size of the shadow outline.
  358. ----
  359. .. _class_Label_theme_font_font:
  360. - :ref:`Font<class_Font>` **font**
  361. :ref:`Font<class_Font>` used for the ``Label``'s text.
  362. ----
  363. .. _class_Label_theme_font_size_font_size:
  364. - :ref:`int<class_int>` **font_size**
  365. Font size of the ``Label``'s text.
  366. ----
  367. .. _class_Label_theme_style_normal:
  368. - :ref:`StyleBox<class_StyleBox>` **normal**
  369. Background :ref:`StyleBox<class_StyleBox>` for the ``Label``.
  370. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  371. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  372. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  373. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  374. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  375. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`