Debian Codegraph @

doc/classes/TextServerExtension.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="TextServerExtension" inherits="TextServer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Base class for custom [TextServer] implementations (plugins).
5 </brief_description>
6 <description>
7 External [TextServer] implementations should inherit from this class.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="_cleanup" qualifiers="virtual">
13 <return type="void" />
14 <description>
15 This method is called before text server is unregistered.
16 </description>
17 </method>
18 <method name="_create_font" qualifiers="virtual required">
19 <return type="RID" />
20 <description>
21 Creates a new, empty font cache entry resource.
22 </description>
23 </method>
24 <method name="_create_font_linked_variation" qualifiers="virtual">
25 <return type="RID" />
26 <param index="0" name="font_rid" type="RID" />
27 <description>
28 Optional, implement if font supports extra spacing or baseline offset.
29 Creates a new variation existing font which is reusing the same glyph cache and font data.
30 </description>
31 </method>
32 <method name="_create_shaped_text" qualifiers="virtual required">
33 <return type="RID" />
34 <param index="0" name="direction" type="int" enum="TextServer.Direction" />
35 <param index="1" name="orientation" type="int" enum="TextServer.Orientation" />
36 <description>
37 Creates a new buffer for complex text layout, with the given [param direction] and [param orientation].
38 </description>
39 </method>
40 <method name="_draw_hex_code_box" qualifiers="virtual const">
41 <return type="void" />
42 <param index="0" name="canvas" type="RID" />
43 <param index="1" name="size" type="int" />
44 <param index="2" name="pos" type="Vector2" />
45 <param index="3" name="index" type="int" />
46 <param index="4" name="color" type="Color" />
47 <description>
48 Draws box displaying character hexadecimal code.
49 </description>
50 </method>
51 <method name="_font_clear_glyphs" qualifiers="virtual required">
52 <return type="void" />
53 <param index="0" name="font_rid" type="RID" />
54 <param index="1" name="size" type="Vector2i" />
55 <description>
56 Removes all rendered glyph information from the cache entry.
57 </description>
58 </method>
59 <method name="_font_clear_kerning_map" qualifiers="virtual">
60 <return type="void" />
61 <param index="0" name="font_rid" type="RID" />
62 <param index="1" name="size" type="int" />
63 <description>
64 Removes all kerning overrides.
65 </description>
66 </method>
67 <method name="_font_clear_size_cache" qualifiers="virtual required">
68 <return type="void" />
69 <param index="0" name="font_rid" type="RID" />
70 <description>
71 Removes all font sizes from the cache entry.
72 </description>
73 </method>
74 <method name="_font_clear_system_fallback_cache" qualifiers="virtual">
75 <return type="void" />
76 <description>
77 Frees all automatically loaded system fonts.
78 </description>
79 </method>
80 <method name="_font_clear_textures" qualifiers="virtual required">
81 <return type="void" />
82 <param index="0" name="font_rid" type="RID" />
83 <param index="1" name="size" type="Vector2i" />
84 <description>
85 Removes all textures from font cache entry.
86 </description>
87 </method>
88 <method name="_font_draw_glyph" qualifiers="virtual required const">
89 <return type="void" />
90 <param index="0" name="font_rid" type="RID" />
91 <param index="1" name="canvas" type="RID" />
92 <param index="2" name="size" type="int" />
93 <param index="3" name="pos" type="Vector2" />
94 <param index="4" name="index" type="int" />
95 <param index="5" name="color" type="Color" />
96 <param index="6" name="oversampling" type="float" />
97 <description>
98 Draws single glyph into a canvas item at the position, using [param font_rid] at the size [param size]. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
99 </description>
100 </method>
101 <method name="_font_draw_glyph_outline" qualifiers="virtual required const">
102 <return type="void" />
103 <param index="0" name="font_rid" type="RID" />
104 <param index="1" name="canvas" type="RID" />
105 <param index="2" name="size" type="int" />
106 <param index="3" name="outline_size" type="int" />
107 <param index="4" name="pos" type="Vector2" />
108 <param index="5" name="index" type="int" />
109 <param index="6" name="color" type="Color" />
110 <param index="7" name="oversampling" type="float" />
111 <description>
112 Draws single glyph outline of size [param outline_size] into a canvas item at the position, using [param font_rid] at the size [param size]. If [param oversampling] is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
113 </description>
114 </method>
115 <method name="_font_get_antialiasing" qualifiers="virtual const">
116 <return type="int" enum="TextServer.FontAntialiasing" />
117 <param index="0" name="font_rid" type="RID" />
118 <description>
119 Returns font anti-aliasing mode.
120 </description>
121 </method>
122 <method name="_font_get_ascent" qualifiers="virtual required const">
123 <return type="float" />
124 <param index="0" name="font_rid" type="RID" />
125 <param index="1" name="size" type="int" />
126 <description>
127 Returns the font ascent (number of pixels above the baseline).
128 </description>
129 </method>
130 <method name="_font_get_baseline_offset" qualifiers="virtual const">
131 <return type="float" />
132 <param index="0" name="font_rid" type="RID" />
133 <description>
134 Returns extra baseline offset (as a fraction of font height).
135 </description>
136 </method>
137 <method name="_font_get_char_from_glyph_index" qualifiers="virtual required const">
138 <return type="int" />
139 <param index="0" name="font_rid" type="RID" />
140 <param index="1" name="size" type="int" />
141 <param index="2" name="glyph_index" type="int" />
142 <description>
143 Returns character code associated with [param glyph_index], or [code]0[/code] if [param glyph_index] is invalid.
144 </description>
145 </method>
146 <method name="_font_get_descent" qualifiers="virtual required const">
147 <return type="float" />
148 <param index="0" name="font_rid" type="RID" />
149 <param index="1" name="size" type="int" />
150 <description>
151 Returns the font descent (number of pixels below the baseline).
152 </description>
153 </method>
154 <method name="_font_get_disable_embedded_bitmaps" qualifiers="virtual const">
155 <return type="bool" />
156 <param index="0" name="font_rid" type="RID" />
157 <description>
158 Returns whether the font's embedded bitmap loading is disabled.
159 </description>
160 </method>
161 <method name="_font_get_embolden" qualifiers="virtual const">
162 <return type="float" />
163 <param index="0" name="font_rid" type="RID" />
164 <description>
165 Returns font embolden strength.
166 </description>
167 </method>
168 <method name="_font_get_face_count" qualifiers="virtual const">
169 <return type="int" />
170 <param index="0" name="font_rid" type="RID" />
171 <description>
172 Returns number of faces in the TrueType / OpenType collection.
173 </description>
174 </method>
175 <method name="_font_get_face_index" qualifiers="virtual const">
176 <return type="int" />
177 <param index="0" name="font_rid" type="RID" />
178 <description>
179 Returns an active face index in the TrueType / OpenType collection.
180 </description>
181 </method>
182 <method name="_font_get_fixed_size" qualifiers="virtual required const">
183 <return type="int" />
184 <param index="0" name="font_rid" type="RID" />
185 <description>
186 Returns bitmap font fixed size.
187 </description>
188 </method>
189 <method name="_font_get_fixed_size_scale_mode" qualifiers="virtual required const">
190 <return type="int" enum="TextServer.FixedSizeScaleMode" />
191 <param index="0" name="font_rid" type="RID" />
192 <description>
193 Returns bitmap font scaling mode.
194 </description>
195 </method>
196 <method name="_font_get_generate_mipmaps" qualifiers="virtual const">
197 <return type="bool" />
198 <param index="0" name="font_rid" type="RID" />
199 <description>
200 Returns [code]true[/code] if font texture mipmap generation is enabled.
201 </description>
202 </method>
203 <method name="_font_get_global_oversampling" qualifiers="virtual const">
204 <return type="float" />
205 <description>
206 Returns the font oversampling factor, shared by all fonts in the TextServer.
207 </description>
208 </method>
209 <method name="_font_get_glyph_advance" qualifiers="virtual required const">
210 <return type="Vector2" />
211 <param index="0" name="font_rid" type="RID" />
212 <param index="1" name="size" type="int" />
213 <param index="2" name="glyph" type="int" />
214 <description>
215 Returns glyph advance (offset of the next glyph).
216 </description>
217 </method>
218 <method name="_font_get_glyph_contours" qualifiers="virtual const">
219 <return type="Dictionary" />
220 <param index="0" name="font_rid" type="RID" />
221 <param index="1" name="size" type="int" />
222 <param index="2" name="index" type="int" />
223 <description>
224 Returns outline contours of the glyph.
225 </description>
226 </method>
227 <method name="_font_get_glyph_index" qualifiers="virtual required const">
228 <return type="int" />
229 <param index="0" name="font_rid" type="RID" />
230 <param index="1" name="size" type="int" />
231 <param index="2" name="char" type="int" />
232 <param index="3" name="variation_selector" type="int" />
233 <description>
234 Returns the glyph index of a [param char], optionally modified by the [param variation_selector].
235 </description>
236 </method>
237 <method name="_font_get_glyph_list" qualifiers="virtual required const">
238 <return type="PackedInt32Array" />
239 <param index="0" name="font_rid" type="RID" />
240 <param index="1" name="size" type="Vector2i" />
241 <description>
242 Returns list of rendered glyphs in the cache entry.
243 </description>
244 </method>
245 <method name="_font_get_glyph_offset" qualifiers="virtual required const">
246 <return type="Vector2" />
247 <param index="0" name="font_rid" type="RID" />
248 <param index="1" name="size" type="Vector2i" />
249 <param index="2" name="glyph" type="int" />
250 <description>
251 Returns glyph offset from the baseline.
252 </description>
253 </method>
254 <method name="_font_get_glyph_size" qualifiers="virtual required const">
255 <return type="Vector2" />
256 <param index="0" name="font_rid" type="RID" />
257 <param index="1" name="size" type="Vector2i" />
258 <param index="2" name="glyph" type="int" />
259 <description>
260 Returns size of the glyph.
261 </description>
262 </method>
263 <method name="_font_get_glyph_texture_idx" qualifiers="virtual required const">
264 <return type="int" />
265 <param index="0" name="font_rid" type="RID" />
266 <param index="1" name="size" type="Vector2i" />
267 <param index="2" name="glyph" type="int" />
268 <description>
269 Returns index of the cache texture containing the glyph.
270 </description>
271 </method>
272 <method name="_font_get_glyph_texture_rid" qualifiers="virtual required const">
273 <return type="RID" />
274 <param index="0" name="font_rid" type="RID" />
275 <param index="1" name="size" type="Vector2i" />
276 <param index="2" name="glyph" type="int" />
277 <description>
278 Returns resource ID of the cache texture containing the glyph.
279 </description>
280 </method>
281 <method name="_font_get_glyph_texture_size" qualifiers="virtual required const">
282 <return type="Vector2" />
283 <param index="0" name="font_rid" type="RID" />
284 <param index="1" name="size" type="Vector2i" />
285 <param index="2" name="glyph" type="int" />
286 <description>
287 Returns size of the cache texture containing the glyph.
288 </description>
289 </method>
290 <method name="_font_get_glyph_uv_rect" qualifiers="virtual required const">
291 <return type="Rect2" />
292 <param index="0" name="font_rid" type="RID" />
293 <param index="1" name="size" type="Vector2i" />
294 <param index="2" name="glyph" type="int" />
295 <description>
296 Returns rectangle in the cache texture containing the glyph.
297 </description>
298 </method>
299 <method name="_font_get_hinting" qualifiers="virtual const">
300 <return type="int" enum="TextServer.Hinting" />
301 <param index="0" name="font_rid" type="RID" />
302 <description>
303 Returns the font hinting mode. Used by dynamic fonts only.
304 </description>
305 </method>
306 <method name="_font_get_keep_rounding_remainders" qualifiers="virtual const">
307 <return type="bool" />
308 <param index="0" name="font_rid" type="RID" />
309 <description>
310 Returns glyph position rounding behavior. If set to [code]true[/code], when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
311 </description>
312 </method>
313 <method name="_font_get_kerning" qualifiers="virtual const">
314 <return type="Vector2" />
315 <param index="0" name="font_rid" type="RID" />
316 <param index="1" name="size" type="int" />
317 <param index="2" name="glyph_pair" type="Vector2i" />
318 <description>
319 Returns kerning for the pair of glyphs.
320 </description>
321 </method>
322 <method name="_font_get_kerning_list" qualifiers="virtual const">
323 <return type="Vector2i[]" />
324 <param index="0" name="font_rid" type="RID" />
325 <param index="1" name="size" type="int" />
326 <description>
327 Returns list of the kerning overrides.
328 </description>
329 </method>
330 <method name="_font_get_language_support_override" qualifiers="virtual">
331 <return type="bool" />
332 <param index="0" name="font_rid" type="RID" />
333 <param index="1" name="language" type="String" />
334 <description>
335 Returns [code]true[/code] if support override is enabled for the [param language].
336 </description>
337 </method>
338 <method name="_font_get_language_support_overrides" qualifiers="virtual">
339 <return type="PackedStringArray" />
340 <param index="0" name="font_rid" type="RID" />
341 <description>
342 Returns list of language support overrides.
343 </description>
344 </method>
345 <method name="_font_get_msdf_pixel_range" qualifiers="virtual const">
346 <return type="int" />
347 <param index="0" name="font_rid" type="RID" />
348 <description>
349 Returns the width of the range around the shape between the minimum and maximum representable signed distance.
350 </description>
351 </method>
352 <method name="_font_get_msdf_size" qualifiers="virtual const">
353 <return type="int" />
354 <param index="0" name="font_rid" type="RID" />
355 <description>
356 Returns source font size used to generate MSDF textures.
357 </description>
358 </method>
359 <method name="_font_get_name" qualifiers="virtual const">
360 <return type="String" />
361 <param index="0" name="font_rid" type="RID" />
362 <description>
363 Returns font family name.
364 </description>
365 </method>
366 <method name="_font_get_opentype_feature_overrides" qualifiers="virtual const">
367 <return type="Dictionary" />
368 <param index="0" name="font_rid" type="RID" />
369 <description>
370 Returns font OpenType feature set override.
371 </description>
372 </method>
373 <method name="_font_get_ot_name_strings" qualifiers="virtual const">
374 <return type="Dictionary" />
375 <param index="0" name="font_rid" type="RID" />
376 <description>
377 Returns [Dictionary] with OpenType font name strings (localized font names, version, description, license information, sample text, etc.).
378 </description>
379 </method>
380 <method name="_font_get_oversampling" qualifiers="virtual const">
381 <return type="float" />
382 <param index="0" name="font_rid" type="RID" />
383 <description>
384 Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
385 </description>
386 </method>
387 <method name="_font_get_scale" qualifiers="virtual required const">
388 <return type="float" />
389 <param index="0" name="font_rid" type="RID" />
390 <param index="1" name="size" type="int" />
391 <description>
392 Returns scaling factor of the color bitmap font.
393 </description>
394 </method>
395 <method name="_font_get_script_support_override" qualifiers="virtual">
396 <return type="bool" />
397 <param index="0" name="font_rid" type="RID" />
398 <param index="1" name="script" type="String" />
399 <description>
400 Returns [code]true[/code] if support override is enabled for the [param script].
401 </description>
402 </method>
403 <method name="_font_get_script_support_overrides" qualifiers="virtual">
404 <return type="PackedStringArray" />
405 <param index="0" name="font_rid" type="RID" />
406 <description>
407 Returns list of script support overrides.
408 </description>
409 </method>
410 <method name="_font_get_size_cache_info" qualifiers="virtual const">
411 <return type="Dictionary[]" />
412 <param index="0" name="font_rid" type="RID" />
413 <description>
414 Returns font cache information, each entry contains the following fields: [code]Vector2i size_px[/code] - font size in pixels, [code]float viewport_oversampling[/code] - viewport oversampling factor, [code]int glyphs[/code] - number of rendered glyphs, [code]int textures[/code] - number of used textures, [code]int textures_size[/code] - size of texture data in bytes.
415 </description>
416 </method>
417 <method name="_font_get_size_cache_list" qualifiers="virtual required const">
418 <return type="Vector2i[]" />
419 <param index="0" name="font_rid" type="RID" />
420 <description>
421 Returns list of the font sizes in the cache. Each size is [Vector2i] with font size and outline size.
422 </description>
423 </method>
424 <method name="_font_get_spacing" qualifiers="virtual const">
425 <return type="int" />
426 <param index="0" name="font_rid" type="RID" />
427 <param index="1" name="spacing" type="int" enum="TextServer.SpacingType" />
428 <description>
429 Returns the spacing for [param spacing] in pixels (not relative to the font size).
430 </description>
431 </method>
432 <method name="_font_get_stretch" qualifiers="virtual const">
433 <return type="int" />
434 <param index="0" name="font_rid" type="RID" />
435 <description>
436 Returns font stretch amount, compared to a normal width. A percentage value between [code]50%[/code] and [code]200%[/code].
437 </description>
438 </method>
439 <method name="_font_get_style" qualifiers="virtual const">
440 <return type="int" enum="TextServer.FontStyle" is_bitfield="true" />
441 <param index="0" name="font_rid" type="RID" />
442 <description>
443 Returns font style flags.
444 </description>
445 </method>
446 <method name="_font_get_style_name" qualifiers="virtual const">
447 <return type="String" />
448 <param index="0" name="font_rid" type="RID" />
449 <description>
450 Returns font style name.
451 </description>
452 </method>
453 <method name="_font_get_subpixel_positioning" qualifiers="virtual const">
454 <return type="int" enum="TextServer.SubpixelPositioning" />
455 <param index="0" name="font_rid" type="RID" />
456 <description>
457 Returns font subpixel glyph positioning mode.
458 </description>
459 </method>
460 <method name="_font_get_supported_chars" qualifiers="virtual required const">
461 <return type="String" />
462 <param index="0" name="font_rid" type="RID" />
463 <description>
464 Returns a string containing all the characters available in the font.
465 </description>
466 </method>
467 <method name="_font_get_supported_glyphs" qualifiers="virtual required const">
468 <return type="PackedInt32Array" />
469 <param index="0" name="font_rid" type="RID" />
470 <description>
471 Returns an array containing all glyph indices in the font.
472 </description>
473 </method>
474 <method name="_font_get_texture_count" qualifiers="virtual required const">
475 <return type="int" />
476 <param index="0" name="font_rid" type="RID" />
477 <param index="1" name="size" type="Vector2i" />
478 <description>
479 Returns number of textures used by font cache entry.
480 </description>
481 </method>
482 <method name="_font_get_texture_image" qualifiers="virtual required const">
483 <return type="Image" />
484 <param index="0" name="font_rid" type="RID" />
485 <param index="1" name="size" type="Vector2i" />
486 <param index="2" name="texture_index" type="int" />
487 <description>
488 Returns font cache texture image data.
489 </description>
490 </method>
491 <method name="_font_get_texture_offsets" qualifiers="virtual const">
492 <return type="PackedInt32Array" />
493 <param index="0" name="font_rid" type="RID" />
494 <param index="1" name="size" type="Vector2i" />
495 <param index="2" name="texture_index" type="int" />
496 <description>
497 Returns array containing glyph packing data.
498 </description>
499 </method>
500 <method name="_font_get_transform" qualifiers="virtual const">
501 <return type="Transform2D" />
502 <param index="0" name="font_rid" type="RID" />
503 <description>
504 Returns 2D transform applied to the font outlines.
505 </description>
506 </method>
507 <method name="_font_get_underline_position" qualifiers="virtual required const">
508 <return type="float" />
509 <param index="0" name="font_rid" type="RID" />
510 <param index="1" name="size" type="int" />
511 <description>
512 Returns pixel offset of the underline below the baseline.
513 </description>
514 </method>
515 <method name="_font_get_underline_thickness" qualifiers="virtual required const">
516 <return type="float" />
517 <param index="0" name="font_rid" type="RID" />
518 <param index="1" name="size" type="int" />
519 <description>
520 Returns thickness of the underline in pixels.
521 </description>
522 </method>
523 <method name="_font_get_variation_coordinates" qualifiers="virtual const">
524 <return type="Dictionary" />
525 <param index="0" name="font_rid" type="RID" />
526 <description>
527 Returns variation coordinates for the specified font cache entry.
528 </description>
529 </method>
530 <method name="_font_get_weight" qualifiers="virtual const">
531 <return type="int" />
532 <param index="0" name="font_rid" type="RID" />
533 <description>
534 Returns weight (boldness) of the font. A value in the [code]100...999[/code] range, normal font weight is [code]400[/code], bold font weight is [code]700[/code].
535 </description>
536 </method>
537 <method name="_font_has_char" qualifiers="virtual required const">
538 <return type="bool" />
539 <param index="0" name="font_rid" type="RID" />
540 <param index="1" name="char" type="int" />
541 <description>
542 Returns [code]true[/code] if a Unicode [param char] is available in the font.
543 </description>
544 </method>
545 <method name="_font_is_allow_system_fallback" qualifiers="virtual const">
546 <return type="bool" />
547 <param index="0" name="font_rid" type="RID" />
548 <description>
549 Returns [code]true[/code] if system fonts can be automatically used as fallbacks.
550 </description>
551 </method>
552 <method name="_font_is_force_autohinter" qualifiers="virtual const">
553 <return type="bool" />
554 <param index="0" name="font_rid" type="RID" />
555 <description>
556 Returns [code]true[/code] if auto-hinting is supported and preferred over font built-in hinting.
557 </description>
558 </method>
559 <method name="_font_is_language_supported" qualifiers="virtual const">
560 <return type="bool" />
561 <param index="0" name="font_rid" type="RID" />
562 <param index="1" name="language" type="String" />
563 <description>
564 Returns [code]true[/code] if the font supports the given language (as a [url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code).
565 </description>
566 </method>
567 <method name="_font_is_modulate_color_glyphs" qualifiers="virtual const">
568 <return type="bool" />
569 <param index="0" name="font_rid" type="RID" />
570 <description>
571 Returns [code]true[/code] if color modulation is applied when drawing the font's colored glyphs.
572 </description>
573 </method>
574 <method name="_font_is_multichannel_signed_distance_field" qualifiers="virtual const">
575 <return type="bool" />
576 <param index="0" name="font_rid" type="RID" />
577 <description>
578 Returns [code]true[/code] if glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data.
579 </description>
580 </method>
581 <method name="_font_is_script_supported" qualifiers="virtual const">
582 <return type="bool" />
583 <param index="0" name="font_rid" type="RID" />
584 <param index="1" name="script" type="String" />
585 <description>
586 Returns [code]true[/code] if the font supports the given script (as a [url=https://en.wikipedia.org/wiki/ISO_15924]ISO 15924[/url] code).
587 </description>
588 </method>
589 <method name="_font_remove_glyph" qualifiers="virtual required">
590 <return type="void" />
591 <param index="0" name="font_rid" type="RID" />
592 <param index="1" name="size" type="Vector2i" />
593 <param index="2" name="glyph" type="int" />
594 <description>
595 Removes specified rendered glyph information from the cache entry.
596 </description>
597 </method>
598 <method name="_font_remove_kerning" qualifiers="virtual">
599 <return type="void" />
600 <param index="0" name="font_rid" type="RID" />
601 <param index="1" name="size" type="int" />
602 <param index="2" name="glyph_pair" type="Vector2i" />
603 <description>
604 Removes kerning override for the pair of glyphs.
605 </description>
606 </method>
607 <method name="_font_remove_language_support_override" qualifiers="virtual">
608 <return type="void" />
609 <param index="0" name="font_rid" type="RID" />
610 <param index="1" name="language" type="String" />
611 <description>
612 Remove language support override.
613 </description>
614 </method>
615 <method name="_font_remove_script_support_override" qualifiers="virtual">
616 <return type="void" />
617 <param index="0" name="font_rid" type="RID" />
618 <param index="1" name="script" type="String" />
619 <description>
620 Removes script support override.
621 </description>
622 </method>
623 <method name="_font_remove_size_cache" qualifiers="virtual required">
624 <return type="void" />
625 <param index="0" name="font_rid" type="RID" />
626 <param index="1" name="size" type="Vector2i" />
627 <description>
628 Removes specified font size from the cache entry.
629 </description>
630 </method>
631 <method name="_font_remove_texture" qualifiers="virtual required">
632 <return type="void" />
633 <param index="0" name="font_rid" type="RID" />
634 <param index="1" name="size" type="Vector2i" />
635 <param index="2" name="texture_index" type="int" />
636 <description>
637 Removes specified texture from the cache entry.
638 </description>
639 </method>
640 <method name="_font_render_glyph" qualifiers="virtual">
641 <return type="void" />
642 <param index="0" name="font_rid" type="RID" />
643 <param index="1" name="size" type="Vector2i" />
644 <param index="2" name="index" type="int" />
645 <description>
646 Renders specified glyph to the font cache texture.
647 </description>
648 </method>
649 <method name="_font_render_range" qualifiers="virtual">
650 <return type="void" />
651 <param index="0" name="font_rid" type="RID" />
652 <param index="1" name="size" type="Vector2i" />
653 <param index="2" name="start" type="int" />
654 <param index="3" name="end" type="int" />
655 <description>
656 Renders the range of characters to the font cache texture.
657 </description>
658 </method>
659 <method name="_font_set_allow_system_fallback" qualifiers="virtual">
660 <return type="void" />
661 <param index="0" name="font_rid" type="RID" />
662 <param index="1" name="allow_system_fallback" type="bool" />
663 <description>
664 If set to [code]true[/code], system fonts can be automatically used as fallbacks.
665 </description>
666 </method>
667 <method name="_font_set_antialiasing" qualifiers="virtual">
668 <return type="void" />
669 <param index="0" name="font_rid" type="RID" />
670 <param index="1" name="antialiasing" type="int" enum="TextServer.FontAntialiasing" />
671 <description>
672 Sets font anti-aliasing mode.
673 </description>
674 </method>
675 <method name="_font_set_ascent" qualifiers="virtual required">
676 <return type="void" />
677 <param index="0" name="font_rid" type="RID" />
678 <param index="1" name="size" type="int" />
679 <param index="2" name="ascent" type="float" />
680 <description>
681 Sets the font ascent (number of pixels above the baseline).
682 </description>
683 </method>
684 <method name="_font_set_baseline_offset" qualifiers="virtual">
685 <return type="void" />
686 <param index="0" name="font_rid" type="RID" />
687 <param index="1" name="baseline_offset" type="float" />
688 <description>
689 Sets extra baseline offset (as a fraction of font height).
690 </description>
691 </method>
692 <method name="_font_set_data" qualifiers="virtual">
693 <return type="void" />
694 <param index="0" name="font_rid" type="RID" />
695 <param index="1" name="data" type="PackedByteArray" />
696 <description>
697 Sets font source data, e.g contents of the dynamic font source file.
698 </description>
699 </method>
700 <method name="_font_set_data_ptr" qualifiers="virtual">
701 <return type="void" />
702 <param index="0" name="font_rid" type="RID" />
703 <param index="1" name="data_ptr" type="const uint8_t*" />
704 <param index="2" name="data_size" type="int" />
705 <description>
706 Sets pointer to the font source data, e.g contents of the dynamic font source file.
707 </description>
708 </method>
709 <method name="_font_set_descent" qualifiers="virtual required">
710 <return type="void" />
711 <param index="0" name="font_rid" type="RID" />
712 <param index="1" name="size" type="int" />
713 <param index="2" name="descent" type="float" />
714 <description>
715 Sets the font descent (number of pixels below the baseline).
716 </description>
717 </method>
718 <method name="_font_set_disable_embedded_bitmaps" qualifiers="virtual">
719 <return type="void" />
720 <param index="0" name="font_rid" type="RID" />
721 <param index="1" name="disable_embedded_bitmaps" type="bool" />
722 <description>
723 If set to [code]true[/code], embedded font bitmap loading is disabled.
724 </description>
725 </method>
726 <method name="_font_set_embolden" qualifiers="virtual">
727 <return type="void" />
728 <param index="0" name="font_rid" type="RID" />
729 <param index="1" name="strength" type="float" />
730 <description>
731 Sets font embolden strength. If [param strength] is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
732 </description>
733 </method>
734 <method name="_font_set_face_index" qualifiers="virtual">
735 <return type="void" />
736 <param index="0" name="font_rid" type="RID" />
737 <param index="1" name="face_index" type="int" />
738 <description>
739 Sets an active face index in the TrueType / OpenType collection.
740 </description>
741 </method>
742 <method name="_font_set_fixed_size" qualifiers="virtual required">
743 <return type="void" />
744 <param index="0" name="font_rid" type="RID" />
745 <param index="1" name="fixed_size" type="int" />
746 <description>
747 Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.
748 </description>
749 </method>
750 <method name="_font_set_fixed_size_scale_mode" qualifiers="virtual required">
751 <return type="void" />
752 <param index="0" name="font_rid" type="RID" />
753 <param index="1" name="fixed_size_scale_mode" type="int" enum="TextServer.FixedSizeScaleMode" />
754 <description>
755 Sets bitmap font scaling mode. This property is used only if [code]fixed_size[/code] is greater than zero.
756 </description>
757 </method>
758 <method name="_font_set_force_autohinter" qualifiers="virtual">
759 <return type="void" />
760 <param index="0" name="font_rid" type="RID" />
761 <param index="1" name="force_autohinter" type="bool" />
762 <description>
763 If set to [code]true[/code] auto-hinting is preferred over font built-in hinting.
764 </description>
765 </method>
766 <method name="_font_set_generate_mipmaps" qualifiers="virtual">
767 <return type="void" />
768 <param index="0" name="font_rid" type="RID" />
769 <param index="1" name="generate_mipmaps" type="bool" />
770 <description>
771 If set to [code]true[/code] font texture mipmap generation is enabled.
772 </description>
773 </method>
774 <method name="_font_set_global_oversampling" qualifiers="virtual">
775 <return type="void" />
776 <param index="0" name="oversampling" type="float" />
777 <description>
778 Sets oversampling factor, shared by all font in the TextServer.
779 </description>
780 </method>
781 <method name="_font_set_glyph_advance" qualifiers="virtual required">
782 <return type="void" />
783 <param index="0" name="font_rid" type="RID" />
784 <param index="1" name="size" type="int" />
785 <param index="2" name="glyph" type="int" />
786 <param index="3" name="advance" type="Vector2" />
787 <description>
788 Sets glyph advance (offset of the next glyph).
789 </description>
790 </method>
791 <method name="_font_set_glyph_offset" qualifiers="virtual required">
792 <return type="void" />
793 <param index="0" name="font_rid" type="RID" />
794 <param index="1" name="size" type="Vector2i" />
795 <param index="2" name="glyph" type="int" />
796 <param index="3" name="offset" type="Vector2" />
797 <description>
798 Sets glyph offset from the baseline.
799 </description>
800 </method>
801 <method name="_font_set_glyph_size" qualifiers="virtual required">
802 <return type="void" />
803 <param index="0" name="font_rid" type="RID" />
804 <param index="1" name="size" type="Vector2i" />
805 <param index="2" name="glyph" type="int" />
806 <param index="3" name="gl_size" type="Vector2" />
807 <description>
808 Sets size of the glyph.
809 </description>
810 </method>
811 <method name="_font_set_glyph_texture_idx" qualifiers="virtual required">
812 <return type="void" />
813 <param index="0" name="font_rid" type="RID" />
814 <param index="1" name="size" type="Vector2i" />
815 <param index="2" name="glyph" type="int" />
816 <param index="3" name="texture_idx" type="int" />
817 <description>
818 Sets index of the cache texture containing the glyph.
819 </description>
820 </method>
821 <method name="_font_set_glyph_uv_rect" qualifiers="virtual required">
822 <return type="void" />
823 <param index="0" name="font_rid" type="RID" />
824 <param index="1" name="size" type="Vector2i" />
825 <param index="2" name="glyph" type="int" />
826 <param index="3" name="uv_rect" type="Rect2" />
827 <description>
828 Sets rectangle in the cache texture containing the glyph.
829 </description>
830 </method>
831 <method name="_font_set_hinting" qualifiers="virtual">
832 <return type="void" />
833 <param index="0" name="font_rid" type="RID" />
834 <param index="1" name="hinting" type="int" enum="TextServer.Hinting" />
835 <description>
836 Sets font hinting mode. Used by dynamic fonts only.
837 </description>
838 </method>
839 <method name="_font_set_keep_rounding_remainders" qualifiers="virtual">
840 <return type="void" />
841 <param index="0" name="font_rid" type="RID" />
842 <param index="1" name="keep_rounding_remainders" type="bool" />
843 <description>
844 Sets glyph position rounding behavior. If set to [code]true[/code], when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
845 </description>
846 </method>
847 <method name="_font_set_kerning" qualifiers="virtual">
848 <return type="void" />
849 <param index="0" name="font_rid" type="RID" />
850 <param index="1" name="size" type="int" />
851 <param index="2" name="glyph_pair" type="Vector2i" />
852 <param index="3" name="kerning" type="Vector2" />
853 <description>
854 Sets kerning for the pair of glyphs.
855 </description>
856 </method>
857 <method name="_font_set_language_support_override" qualifiers="virtual">
858 <return type="void" />
859 <param index="0" name="font_rid" type="RID" />
860 <param index="1" name="language" type="String" />
861 <param index="2" name="supported" type="bool" />
862 <description>
863 Adds override for [method _font_is_language_supported].
864 </description>
865 </method>
866 <method name="_font_set_modulate_color_glyphs" qualifiers="virtual">
867 <return type="void" />
868 <param index="0" name="font_rid" type="RID" />
869 <param index="1" name="modulate" type="bool" />
870 <description>
871 If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
872 </description>
873 </method>
874 <method name="_font_set_msdf_pixel_range" qualifiers="virtual">
875 <return type="void" />
876 <param index="0" name="font_rid" type="RID" />
877 <param index="1" name="msdf_pixel_range" type="int" />
878 <description>
879 Sets the width of the range around the shape between the minimum and maximum representable signed distance.
880 </description>
881 </method>
882 <method name="_font_set_msdf_size" qualifiers="virtual">
883 <return type="void" />
884 <param index="0" name="font_rid" type="RID" />
885 <param index="1" name="msdf_size" type="int" />
886 <description>
887 Sets source font size used to generate MSDF textures.
888 </description>
889 </method>
890 <method name="_font_set_multichannel_signed_distance_field" qualifiers="virtual">
891 <return type="void" />
892 <param index="0" name="font_rid" type="RID" />
893 <param index="1" name="msdf" type="bool" />
894 <description>
895 If set to [code]true[/code], glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data. MSDF rendering allows displaying the font at any scaling factor without blurriness, and without incurring a CPU cost when the font size changes (since the font no longer needs to be rasterized on the CPU). As a downside, font hinting is not available with MSDF. The lack of font hinting may result in less crisp and less readable fonts at small sizes.
896 </description>
897 </method>
898 <method name="_font_set_name" qualifiers="virtual">
899 <return type="void" />
900 <param index="0" name="font_rid" type="RID" />
901 <param index="1" name="name" type="String" />
902 <description>
903 Sets the font family name.
904 </description>
905 </method>
906 <method name="_font_set_opentype_feature_overrides" qualifiers="virtual">
907 <return type="void" />
908 <param index="0" name="font_rid" type="RID" />
909 <param index="1" name="overrides" type="Dictionary" />
910 <description>
911 Sets font OpenType feature set override.
912 </description>
913 </method>
914 <method name="_font_set_oversampling" qualifiers="virtual">
915 <return type="void" />
916 <param index="0" name="font_rid" type="RID" />
917 <param index="1" name="oversampling" type="float" />
918 <description>
919 If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
920 </description>
921 </method>
922 <method name="_font_set_scale" qualifiers="virtual required">
923 <return type="void" />
924 <param index="0" name="font_rid" type="RID" />
925 <param index="1" name="size" type="int" />
926 <param index="2" name="scale" type="float" />
927 <description>
928 Sets scaling factor of the color bitmap font.
929 </description>
930 </method>
931 <method name="_font_set_script_support_override" qualifiers="virtual">
932 <return type="void" />
933 <param index="0" name="font_rid" type="RID" />
934 <param index="1" name="script" type="String" />
935 <param index="2" name="supported" type="bool" />
936 <description>
937 Adds override for [method _font_is_script_supported].
938 </description>
939 </method>
940 <method name="_font_set_spacing" qualifiers="virtual">
941 <return type="void" />
942 <param index="0" name="font_rid" type="RID" />
943 <param index="1" name="spacing" type="int" enum="TextServer.SpacingType" />
944 <param index="2" name="value" type="int" />
945 <description>
946 Sets the spacing for [param spacing] to [param value] in pixels (not relative to the font size).
947 </description>
948 </method>
949 <method name="_font_set_stretch" qualifiers="virtual">
950 <return type="void" />
951 <param index="0" name="font_rid" type="RID" />
952 <param index="1" name="stretch" type="int" />
953 <description>
954 Sets font stretch amount, compared to a normal width. A percentage value between [code]50%[/code] and [code]200%[/code].
955 </description>
956 </method>
957 <method name="_font_set_style" qualifiers="virtual">
958 <return type="void" />
959 <param index="0" name="font_rid" type="RID" />
960 <param index="1" name="style" type="int" enum="TextServer.FontStyle" is_bitfield="true" />
961 <description>
962 Sets the font style flags.
963 </description>
964 </method>
965 <method name="_font_set_style_name" qualifiers="virtual">
966 <return type="void" />
967 <param index="0" name="font_rid" type="RID" />
968 <param index="1" name="name_style" type="String" />
969 <description>
970 Sets the font style name.
971 </description>
972 </method>
973 <method name="_font_set_subpixel_positioning" qualifiers="virtual">
974 <return type="void" />
975 <param index="0" name="font_rid" type="RID" />
976 <param index="1" name="subpixel_positioning" type="int" enum="TextServer.SubpixelPositioning" />
977 <description>
978 Sets font subpixel glyph positioning mode.
979 </description>
980 </method>
981 <method name="_font_set_texture_image" qualifiers="virtual required">
982 <return type="void" />
983 <param index="0" name="font_rid" type="RID" />
984 <param index="1" name="size" type="Vector2i" />
985 <param index="2" name="texture_index" type="int" />
986 <param index="3" name="image" type="Image" />
987 <description>
988 Sets font cache texture image data.
989 </description>
990 </method>
991 <method name="_font_set_texture_offsets" qualifiers="virtual">
992 <return type="void" />
993 <param index="0" name="font_rid" type="RID" />
994 <param index="1" name="size" type="Vector2i" />
995 <param index="2" name="texture_index" type="int" />
996 <param index="3" name="offset" type="PackedInt32Array" />
997 <description>
998 Sets array containing glyph packing data.
999 </description>
1000 </method>
1001 <method name="_font_set_transform" qualifiers="virtual">
1002 <return type="void" />
1003 <param index="0" name="font_rid" type="RID" />
1004 <param index="1" name="transform" type="Transform2D" />
1005 <description>
1006 Sets 2D transform, applied to the font outlines, can be used for slanting, flipping, and rotating glyphs.
1007 </description>
1008 </method>
1009 <method name="_font_set_underline_position" qualifiers="virtual required">
1010 <return type="void" />
1011 <param index="0" name="font_rid" type="RID" />
1012 <param index="1" name="size" type="int" />
1013 <param index="2" name="underline_position" type="float" />
1014 <description>
1015 Sets pixel offset of the underline below the baseline.
1016 </description>
1017 </method>
1018 <method name="_font_set_underline_thickness" qualifiers="virtual required">
1019 <return type="void" />
1020 <param index="0" name="font_rid" type="RID" />
1021 <param index="1" name="size" type="int" />
1022 <param index="2" name="underline_thickness" type="float" />
1023 <description>
1024 Sets thickness of the underline in pixels.
1025 </description>
1026 </method>
1027 <method name="_font_set_variation_coordinates" qualifiers="virtual">
1028 <return type="void" />
1029 <param index="0" name="font_rid" type="RID" />
1030 <param index="1" name="variation_coordinates" type="Dictionary" />
1031 <description>
1032 Sets variation coordinates for the specified font cache entry.
1033 </description>
1034 </method>
1035 <method name="_font_set_weight" qualifiers="virtual">
1036 <return type="void" />
1037 <param index="0" name="font_rid" type="RID" />
1038 <param index="1" name="weight" type="int" />
1039 <description>
1040 Sets weight (boldness) of the font. A value in the [code]100...999[/code] range, normal font weight is [code]400[/code], bold font weight is [code]700[/code].
1041 </description>
1042 </method>
1043 <method name="_font_supported_feature_list" qualifiers="virtual const">
1044 <return type="Dictionary" />
1045 <param index="0" name="font_rid" type="RID" />
1046 <description>
1047 Returns the dictionary of the supported OpenType features.
1048 </description>
1049 </method>
1050 <method name="_font_supported_variation_list" qualifiers="virtual const">
1051 <return type="Dictionary" />
1052 <param index="0" name="font_rid" type="RID" />
1053 <description>
1054 Returns the dictionary of the supported OpenType variation coordinates.
1055 </description>
1056 </method>
1057 <method name="_format_number" qualifiers="virtual const" deprecated="Use [method TranslationServer.format_number] instead.">
1058 <return type="String" />
1059 <param index="0" name="number" type="String" />
1060 <param index="1" name="language" type="String" />
1061 <description>
1062 Converts a number from Western Arabic (0..9) to the numeral system used in the given [param language].
1063 If [param language] is an empty string, the active locale will be used.
1064 </description>
1065 </method>
1066 <method name="_free_rid" qualifiers="virtual required">
1067 <return type="void" />
1068 <param index="0" name="rid" type="RID" />
1069 <description>
1070 Frees an object created by this [TextServer].
1071 </description>
1072 </method>
1073 <method name="_get_features" qualifiers="virtual required const">
1074 <return type="int" />
1075 <description>
1076 Returns text server features, see [enum TextServer.Feature].
1077 </description>
1078 </method>
1079 <method name="_get_hex_code_box_size" qualifiers="virtual const">
1080 <return type="Vector2" />
1081 <param index="0" name="size" type="int" />
1082 <param index="1" name="index" type="int" />
1083 <description>
1084 Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters).
1085 </description>
1086 </method>
1087 <method name="_get_name" qualifiers="virtual required const">
1088 <return type="String" />
1089 <description>
1090 Returns the name of the server interface.
1091 </description>
1092 </method>
1093 <method name="_get_support_data" qualifiers="virtual const">
1094 <return type="PackedByteArray" />
1095 <description>
1096 Returns default TextServer database (e.g. ICU break iterators and dictionaries).
1097 </description>
1098 </method>
1099 <method name="_get_support_data_filename" qualifiers="virtual const">
1100 <return type="String" />
1101 <description>
1102 Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename.
1103 </description>
1104 </method>
1105 <method name="_get_support_data_info" qualifiers="virtual const">
1106 <return type="String" />
1107 <description>
1108 Returns TextServer database (e.g. ICU break iterators and dictionaries) description.
1109 </description>
1110 </method>
1111 <method name="_has" qualifiers="virtual required">
1112 <return type="bool" />
1113 <param index="0" name="rid" type="RID" />
1114 <description>
1115 Returns [code]true[/code] if [param rid] is valid resource owned by this text server.
1116 </description>
1117 </method>
1118 <method name="_has_feature" qualifiers="virtual required const">
1119 <return type="bool" />
1120 <param index="0" name="feature" type="int" enum="TextServer.Feature" />
1121 <description>
1122 Returns [code]true[/code] if the server supports a feature.
1123 </description>
1124 </method>
1125 <method name="_is_confusable" qualifiers="virtual const">
1126 <return type="int" />
1127 <param index="0" name="string" type="String" />
1128 <param index="1" name="dict" type="PackedStringArray" />
1129 <description>
1130 Returns index of the first string in [param dict] which is visually confusable with the [param string], or [code]-1[/code] if none is found.
1131 </description>
1132 </method>
1133 <method name="_is_locale_right_to_left" qualifiers="virtual const">
1134 <return type="bool" />
1135 <param index="0" name="locale" type="String" />
1136 <description>
1137 Returns [code]true[/code] if locale is right-to-left.
1138 </description>
1139 </method>
1140 <method name="_is_locale_using_support_data" qualifiers="virtual const">
1141 <return type="bool" />
1142 <param index="0" name="locale" type="String" />
1143 <description>
1144 Returns [code]true[/code] if the locale requires text server support data for line/word breaking.
1145 </description>
1146 </method>
1147 <method name="_is_valid_identifier" qualifiers="virtual const">
1148 <return type="bool" />
1149 <param index="0" name="string" type="String" />
1150 <description>
1151 Returns [code]true[/code] if [param string] is a valid identifier.
1152 </description>
1153 </method>
1154 <method name="_is_valid_letter" qualifiers="virtual const">
1155 <return type="bool" />
1156 <param index="0" name="unicode" type="int" />
1157 <description>
1158 </description>
1159 </method>
1160 <method name="_load_support_data" qualifiers="virtual">
1161 <return type="bool" />
1162 <param index="0" name="filename" type="String" />
1163 <description>
1164 Loads optional TextServer database (e.g. ICU break iterators and dictionaries).
1165 </description>
1166 </method>
1167 <method name="_name_to_tag" qualifiers="virtual const">
1168 <return type="int" />
1169 <param index="0" name="name" type="String" />
1170 <description>
1171 Converts the given readable name of a feature, variation, script, or language to an OpenType tag.
1172 </description>
1173 </method>
1174 <method name="_parse_number" qualifiers="virtual const" deprecated="Use [method TranslationServer.parse_number] instead.">
1175 <return type="String" />
1176 <param index="0" name="number" type="String" />
1177 <param index="1" name="language" type="String" />
1178 <description>
1179 Converts [param number] from the numeral system used in the given [param language] to Western Arabic (0..9).
1180 If [param language] is an empty string, the active locale will be used.
1181 </description>
1182 </method>
1183 <method name="_parse_structured_text" qualifiers="virtual const">
1184 <return type="Vector3i[]" />
1185 <param index="0" name="parser_type" type="int" enum="TextServer.StructuredTextParser" />
1186 <param index="1" name="args" type="Array" />
1187 <param index="2" name="text" type="String" />
1188 <description>
1189 Default implementation of the BiDi algorithm override function.
1190 </description>
1191 </method>
1192 <method name="_percent_sign" qualifiers="virtual const" deprecated="Use [method TranslationServer.get_percent_sign] instead.">
1193 <return type="String" />
1194 <param index="0" name="language" type="String" />
1195 <description>
1196 Returns percent sign used in the given [param language].
1197 </description>
1198 </method>
1199 <method name="_reference_oversampling_level" qualifiers="virtual">
1200 <return type="void" />
1201 <param index="0" name="oversampling" type="float" />
1202 <description>
1203 Increases the reference count of the specified oversampling level. This method is called by [Viewport], and should not be used directly.
1204 </description>
1205 </method>
1206 <method name="_save_support_data" qualifiers="virtual const">
1207 <return type="bool" />
1208 <param index="0" name="filename" type="String" />
1209 <description>
1210 Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file.
1211 </description>
1212 </method>
1213 <method name="_shaped_get_run_count" qualifiers="virtual const">
1214 <return type="int" />
1215 <param index="0" name="shaped" type="RID" />
1216 <description>
1217 Returns the number of uniform text runs in the buffer.
1218 </description>
1219 </method>
1220 <method name="_shaped_get_run_direction" qualifiers="virtual const">
1221 <return type="int" enum="TextServer.Direction" />
1222 <param index="0" name="shaped" type="RID" />
1223 <param index="1" name="index" type="int" />
1224 <description>
1225 Returns the direction of the [param index] text run (in visual order).
1226 </description>
1227 </method>
1228 <method name="_shaped_get_run_font_rid" qualifiers="virtual const">
1229 <return type="RID" />
1230 <param index="0" name="shaped" type="RID" />
1231 <param index="1" name="index" type="int" />
1232 <description>
1233 Returns the font RID of the [param index] text run (in visual order).
1234 </description>
1235 </method>
1236 <method name="_shaped_get_run_font_size" qualifiers="virtual const">
1237 <return type="int" />
1238 <param index="0" name="shaped" type="RID" />
1239 <param index="1" name="index" type="int" />
1240 <description>
1241 Returns the font size of the [param index] text run (in visual order).
1242 </description>
1243 </method>
1244 <method name="_shaped_get_run_glyph_range" qualifiers="virtual const">
1245 <return type="Vector2i" />
1246 <param index="0" name="shaped" type="RID" />
1247 <param index="1" name="index" type="int" />
1248 <description>
1249 Returns the glyph range of the [param index] text run (in visual order).
1250 </description>
1251 </method>
1252 <method name="_shaped_get_run_language" qualifiers="virtual const">
1253 <return type="String" />
1254 <param index="0" name="shaped" type="RID" />
1255 <param index="1" name="index" type="int" />
1256 <description>
1257 Returns the language of the [param index] text run (in visual order).
1258 </description>
1259 </method>
1260 <method name="_shaped_get_run_object" qualifiers="virtual const">
1261 <return type="Variant" />
1262 <param index="0" name="shaped" type="RID" />
1263 <param index="1" name="index" type="int" />
1264 <description>
1265 Returns the embedded object of the [param index] text run (in visual order).
1266 </description>
1267 </method>
1268 <method name="_shaped_get_run_range" qualifiers="virtual const">
1269 <return type="Vector2i" />
1270 <param index="0" name="shaped" type="RID" />
1271 <param index="1" name="index" type="int" />
1272 <description>
1273 Returns the source text range of the [param index] text run (in visual order).
1274 </description>
1275 </method>
1276 <method name="_shaped_get_run_text" qualifiers="virtual const">
1277 <return type="String" />
1278 <param index="0" name="shaped" type="RID" />
1279 <param index="1" name="index" type="int" />
1280 <description>
1281 Returns the source text of the [param index] text run (in visual order).
1282 </description>
1283 </method>
1284 <method name="_shaped_get_span_count" qualifiers="virtual required const">
1285 <return type="int" />
1286 <param index="0" name="shaped" type="RID" />
1287 <description>
1288 Returns number of text spans added using [method _shaped_text_add_string] or [method _shaped_text_add_object].
1289 </description>
1290 </method>
1291 <method name="_shaped_get_span_embedded_object" qualifiers="virtual required const">
1292 <return type="Variant" />
1293 <param index="0" name="shaped" type="RID" />
1294 <param index="1" name="index" type="int" />
1295 <description>
1296 Returns text embedded object key.
1297 </description>
1298 </method>
1299 <method name="_shaped_get_span_meta" qualifiers="virtual required const">
1300 <return type="Variant" />
1301 <param index="0" name="shaped" type="RID" />
1302 <param index="1" name="index" type="int" />
1303 <description>
1304 Returns text span metadata.
1305 </description>
1306 </method>
1307 <method name="_shaped_get_span_object" qualifiers="virtual required const">
1308 <return type="Variant" />
1309 <param index="0" name="shaped" type="RID" />
1310 <param index="1" name="index" type="int" />
1311 <description>
1312 Returns the text span embedded object key.
1313 </description>
1314 </method>
1315 <method name="_shaped_get_span_text" qualifiers="virtual required const">
1316 <return type="String" />
1317 <param index="0" name="shaped" type="RID" />
1318 <param index="1" name="index" type="int" />
1319 <description>
1320 Returns the text span source text.
1321 </description>
1322 </method>
1323 <method name="_shaped_get_text" qualifiers="virtual required const">
1324 <return type="String" />
1325 <param index="0" name="shaped" type="RID" />
1326 <description>
1327 Returns the text buffer source text, including object replacement characters.
1328 </description>
1329 </method>
1330 <method name="_shaped_set_span_update_font" qualifiers="virtual required">
1331 <return type="void" />
1332 <param index="0" name="shaped" type="RID" />
1333 <param index="1" name="index" type="int" />
1334 <param index="2" name="fonts" type="RID[]" />
1335 <param index="3" name="size" type="int" />
1336 <param index="4" name="opentype_features" type="Dictionary" />
1337 <description>
1338 Changes text span font, font size, and OpenType features, without changing the text.
1339 </description>
1340 </method>
1341 <method name="_shaped_text_add_object" qualifiers="virtual required">
1342 <return type="bool" />
1343 <param index="0" name="shaped" type="RID" />
1344 <param index="1" name="key" type="Variant" />
1345 <param index="2" name="size" type="Vector2" />
1346 <param index="3" name="inline_align" type="int" enum="InlineAlignment" />
1347 <param index="4" name="length" type="int" />
1348 <param index="5" name="baseline" type="float" />
1349 <description>
1350 Adds inline object to the text buffer, [param key] must be unique. In the text, object is represented as [param length] object replacement characters.
1351 </description>
1352 </method>
1353 <method name="_shaped_text_add_string" qualifiers="virtual required">
1354 <return type="bool" />
1355 <param index="0" name="shaped" type="RID" />
1356 <param index="1" name="text" type="String" />
1357 <param index="2" name="fonts" type="RID[]" />
1358 <param index="3" name="size" type="int" />
1359 <param index="4" name="opentype_features" type="Dictionary" />
1360 <param index="5" name="language" type="String" />
1361 <param index="6" name="meta" type="Variant" />
1362 <description>
1363 Adds text span and font to draw it to the text buffer.
1364 </description>
1365 </method>
1366 <method name="_shaped_text_clear" qualifiers="virtual required">
1367 <return type="void" />
1368 <param index="0" name="shaped" type="RID" />
1369 <description>
1370 Clears text buffer (removes text and inline objects).
1371 </description>
1372 </method>
1373 <method name="_shaped_text_closest_character_pos" qualifiers="virtual const">
1374 <return type="int" />
1375 <param index="0" name="shaped" type="RID" />
1376 <param index="1" name="pos" type="int" />
1377 <description>
1378 Returns composite character position closest to the [param pos].
1379 </description>
1380 </method>
1381 <method name="_shaped_text_draw" qualifiers="virtual const">
1382 <return type="void" />
1383 <param index="0" name="shaped" type="RID" />
1384 <param index="1" name="canvas" type="RID" />
1385 <param index="2" name="pos" type="Vector2" />
1386 <param index="3" name="clip_l" type="float" />
1387 <param index="4" name="clip_r" type="float" />
1388 <param index="5" name="color" type="Color" />
1389 <param index="6" name="oversampling" type="float" />
1390 <description>
1391 Draw 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.
1392 </description>
1393 </method>
1394 <method name="_shaped_text_draw_outline" qualifiers="virtual const">
1395 <return type="void" />
1396 <param index="0" name="shaped" type="RID" />
1397 <param index="1" name="canvas" type="RID" />
1398 <param index="2" name="pos" type="Vector2" />
1399 <param index="3" name="clip_l" type="float" />
1400 <param index="4" name="clip_r" type="float" />
1401 <param index="5" name="outline_size" type="int" />
1402 <param index="6" name="color" type="Color" />
1403 <param index="7" name="oversampling" type="float" />
1404 <description>
1405 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.
1406 </description>
1407 </method>
1408 <method name="_shaped_text_duplicate" qualifiers="virtual required">
1409 <return type="RID" />
1410 <param index="0" name="shaped" type="RID" />
1411 <description>
1412 Duplicates shaped text buffer.
1413 </description>
1414 </method>
1415 <method name="_shaped_text_fit_to_width" qualifiers="virtual">
1416 <return type="float" />
1417 <param index="0" name="shaped" type="RID" />
1418 <param index="1" name="width" type="float" />
1419 <param index="2" name="justification_flags" type="int" enum="TextServer.JustificationFlag" is_bitfield="true" />
1420 <description>
1421 Adjusts text width to fit to specified width, returns new text width.
1422 </description>
1423 </method>
1424 <method name="_shaped_text_get_ascent" qualifiers="virtual required const">
1425 <return type="float" />
1426 <param index="0" name="shaped" type="RID" />
1427 <description>
1428 Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).
1429 </description>
1430 </method>
1431 <method name="_shaped_text_get_carets" qualifiers="virtual const">
1432 <return type="void" />
1433 <param index="0" name="shaped" type="RID" />
1434 <param index="1" name="position" type="int" />
1435 <param index="2" name="caret" type="CaretInfo*" />
1436 <description>
1437 Returns shapes of the carets corresponding to the character offset [param position] in the text. Returned caret shape is 1 pixel wide rectangle.
1438 </description>
1439 </method>
1440 <method name="_shaped_text_get_character_breaks" qualifiers="virtual const">
1441 <return type="PackedInt32Array" />
1442 <param index="0" name="shaped" type="RID" />
1443 <description>
1444 Returns array of the composite character boundaries.
1445 </description>
1446 </method>
1447 <method name="_shaped_text_get_custom_ellipsis" qualifiers="virtual const">
1448 <return type="int" />
1449 <param index="0" name="shaped" type="RID" />
1450 <description>
1451 Returns ellipsis character used for text clipping.
1452 </description>
1453 </method>
1454 <method name="_shaped_text_get_custom_punctuation" qualifiers="virtual const">
1455 <return type="String" />
1456 <param index="0" name="shaped" type="RID" />
1457 <description>
1458 Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
1459 </description>
1460 </method>
1461 <method name="_shaped_text_get_descent" qualifiers="virtual required const">
1462 <return type="float" />
1463 <param index="0" name="shaped" type="RID" />
1464 <description>
1465 Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).
1466 </description>
1467 </method>
1468 <method name="_shaped_text_get_direction" qualifiers="virtual const">
1469 <return type="int" enum="TextServer.Direction" />
1470 <param index="0" name="shaped" type="RID" />
1471 <description>
1472 Returns direction of the text.
1473 </description>
1474 </method>
1475 <method name="_shaped_text_get_dominant_direction_in_range" qualifiers="virtual const">
1476 <return type="int" />
1477 <param index="0" name="shaped" type="RID" />
1478 <param index="1" name="start" type="int" />
1479 <param index="2" name="end" type="int" />
1480 <description>
1481 Returns dominant direction of in the range of text.
1482 </description>
1483 </method>
1484 <method name="_shaped_text_get_ellipsis_glyph_count" qualifiers="virtual required const">
1485 <return type="int" />
1486 <param index="0" name="shaped" type="RID" />
1487 <description>
1488 Returns number of glyphs in the ellipsis.
1489 </description>
1490 </method>
1491 <method name="_shaped_text_get_ellipsis_glyphs" qualifiers="virtual required const">
1492 <return type="const Glyph*" />
1493 <param index="0" name="shaped" type="RID" />
1494 <description>
1495 Returns array of the glyphs in the ellipsis.
1496 </description>
1497 </method>
1498 <method name="_shaped_text_get_ellipsis_pos" qualifiers="virtual required const">
1499 <return type="int" />
1500 <param index="0" name="shaped" type="RID" />
1501 <description>
1502 Returns position of the ellipsis.
1503 </description>
1504 </method>
1505 <method name="_shaped_text_get_glyph_count" qualifiers="virtual required const">
1506 <return type="int" />
1507 <param index="0" name="shaped" type="RID" />
1508 <description>
1509 Returns number of glyphs in the buffer.
1510 </description>
1511 </method>
1512 <method name="_shaped_text_get_glyphs" qualifiers="virtual required const">
1513 <return type="const Glyph*" />
1514 <param index="0" name="shaped" type="RID" />
1515 <description>
1516 Returns an array of glyphs in the visual order.
1517 </description>
1518 </method>
1519 <method name="_shaped_text_get_grapheme_bounds" qualifiers="virtual const">
1520 <return type="Vector2" />
1521 <param index="0" name="shaped" type="RID" />
1522 <param index="1" name="pos" type="int" />
1523 <description>
1524 Returns composite character's bounds as offsets from the start of the line.
1525 </description>
1526 </method>
1527 <method name="_shaped_text_get_inferred_direction" qualifiers="virtual const">
1528 <return type="int" enum="TextServer.Direction" />
1529 <param index="0" name="shaped" type="RID" />
1530 <description>
1531 Returns direction of the text, inferred by the BiDi algorithm.
1532 </description>
1533 </method>
1534 <method name="_shaped_text_get_line_breaks" qualifiers="virtual const">
1535 <return type="PackedInt32Array" />
1536 <param index="0" name="shaped" type="RID" />
1537 <param index="1" name="width" type="float" />
1538 <param index="2" name="start" type="int" />
1539 <param index="3" name="break_flags" type="int" enum="TextServer.LineBreakFlag" is_bitfield="true" />
1540 <description>
1541 Breaks text to the lines and returns character ranges for each line.
1542 </description>
1543 </method>
1544 <method name="_shaped_text_get_line_breaks_adv" qualifiers="virtual const">
1545 <return type="PackedInt32Array" />
1546 <param index="0" name="shaped" type="RID" />
1547 <param index="1" name="width" type="PackedFloat32Array" />
1548 <param index="2" name="start" type="int" />
1549 <param index="3" name="once" type="bool" />
1550 <param index="4" name="break_flags" type="int" enum="TextServer.LineBreakFlag" is_bitfield="true" />
1551 <description>
1552 Breaks text to the lines and columns. Returns character ranges for each segment.
1553 </description>
1554 </method>
1555 <method name="_shaped_text_get_object_glyph" qualifiers="virtual required const">
1556 <return type="int" />
1557 <param index="0" name="shaped" type="RID" />
1558 <param index="1" name="key" type="Variant" />
1559 <description>
1560 Returns the glyph index of the inline object.
1561 </description>
1562 </method>
1563 <method name="_shaped_text_get_object_range" qualifiers="virtual required const">
1564 <return type="Vector2i" />
1565 <param index="0" name="shaped" type="RID" />
1566 <param index="1" name="key" type="Variant" />
1567 <description>
1568 Returns the character range of the inline object.
1569 </description>
1570 </method>
1571 <method name="_shaped_text_get_object_rect" qualifiers="virtual required const">
1572 <return type="Rect2" />
1573 <param index="0" name="shaped" type="RID" />
1574 <param index="1" name="key" type="Variant" />
1575 <description>
1576 Returns bounding rectangle of the inline object.
1577 </description>
1578 </method>
1579 <method name="_shaped_text_get_objects" qualifiers="virtual required const">
1580 <return type="Array" />
1581 <param index="0" name="shaped" type="RID" />
1582 <description>
1583 Returns array of inline objects.
1584 </description>
1585 </method>
1586 <method name="_shaped_text_get_orientation" qualifiers="virtual const">
1587 <return type="int" enum="TextServer.Orientation" />
1588 <param index="0" name="shaped" type="RID" />
1589 <description>
1590 Returns text orientation.
1591 </description>
1592 </method>
1593 <method name="_shaped_text_get_parent" qualifiers="virtual required const">
1594 <return type="RID" />
1595 <param index="0" name="shaped" type="RID" />
1596 <description>
1597 Returns the parent buffer from which the substring originates.
1598 </description>
1599 </method>
1600 <method name="_shaped_text_get_preserve_control" qualifiers="virtual const">
1601 <return type="bool" />
1602 <param index="0" name="shaped" type="RID" />
1603 <description>
1604 Returns [code]true[/code] if text buffer is configured to display control characters.
1605 </description>
1606 </method>
1607 <method name="_shaped_text_get_preserve_invalid" qualifiers="virtual const">
1608 <return type="bool" />
1609 <param index="0" name="shaped" type="RID" />
1610 <description>
1611 Returns [code]true[/code] if text buffer is configured to display hexadecimal codes in place of invalid characters.
1612 </description>
1613 </method>
1614 <method name="_shaped_text_get_range" qualifiers="virtual required const">
1615 <return type="Vector2i" />
1616 <param index="0" name="shaped" type="RID" />
1617 <description>
1618 Returns substring buffer character range in the parent buffer.
1619 </description>
1620 </method>
1621 <method name="_shaped_text_get_selection" qualifiers="virtual const">
1622 <return type="PackedVector2Array" />
1623 <param index="0" name="shaped" type="RID" />
1624 <param index="1" name="start" type="int" />
1625 <param index="2" name="end" type="int" />
1626 <description>
1627 Returns selection rectangles for the specified character range.
1628 </description>
1629 </method>
1630 <method name="_shaped_text_get_size" qualifiers="virtual required const">
1631 <return type="Vector2" />
1632 <param index="0" name="shaped" type="RID" />
1633 <description>
1634 Returns size of the text.
1635 </description>
1636 </method>
1637 <method name="_shaped_text_get_spacing" qualifiers="virtual const">
1638 <return type="int" />
1639 <param index="0" name="shaped" type="RID" />
1640 <param index="1" name="spacing" type="int" enum="TextServer.SpacingType" />
1641 <description>
1642 Returns extra spacing added between glyphs or lines in pixels.
1643 </description>
1644 </method>
1645 <method name="_shaped_text_get_trim_pos" qualifiers="virtual required const">
1646 <return type="int" />
1647 <param index="0" name="shaped" type="RID" />
1648 <description>
1649 Returns the position of the overrun trim.
1650 </description>
1651 </method>
1652 <method name="_shaped_text_get_underline_position" qualifiers="virtual required const">
1653 <return type="float" />
1654 <param index="0" name="shaped" type="RID" />
1655 <description>
1656 Returns pixel offset of the underline below the baseline.
1657 </description>
1658 </method>
1659 <method name="_shaped_text_get_underline_thickness" qualifiers="virtual required const">
1660 <return type="float" />
1661 <param index="0" name="shaped" type="RID" />
1662 <description>
1663 Returns thickness of the underline.
1664 </description>
1665 </method>
1666 <method name="_shaped_text_get_width" qualifiers="virtual required const">
1667 <return type="float" />
1668 <param index="0" name="shaped" type="RID" />
1669 <description>
1670 Returns width (for horizontal layout) or height (for vertical) of the text.
1671 </description>
1672 </method>
1673 <method name="_shaped_text_get_word_breaks" qualifiers="virtual const">
1674 <return type="PackedInt32Array" />
1675 <param index="0" name="shaped" type="RID" />
1676 <param index="1" name="grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" />
1677 <param index="2" name="skip_grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" />
1678 <description>
1679 Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking.
1680 </description>
1681 </method>
1682 <method name="_shaped_text_has_object" qualifiers="virtual required const">
1683 <return type="bool" />
1684 <param index="0" name="shaped" type="RID" />
1685 <param index="1" name="key" type="Variant" />
1686 <description>
1687 Returns [code]true[/code] if an object with [param key] is embedded in this shaped text buffer.
1688 </description>
1689 </method>
1690 <method name="_shaped_text_hit_test_grapheme" qualifiers="virtual const">
1691 <return type="int" />
1692 <param index="0" name="shaped" type="RID" />
1693 <param index="1" name="coord" type="float" />
1694 <description>
1695 Returns grapheme index at the specified pixel offset at the baseline, or [code]-1[/code] if none is found.
1696 </description>
1697 </method>
1698 <method name="_shaped_text_hit_test_position" qualifiers="virtual const">
1699 <return type="int" />
1700 <param index="0" name="shaped" type="RID" />
1701 <param index="1" name="coord" type="float" />
1702 <description>
1703 Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.
1704 </description>
1705 </method>
1706 <method name="_shaped_text_is_ready" qualifiers="virtual required const">
1707 <return type="bool" />
1708 <param index="0" name="shaped" type="RID" />
1709 <description>
1710 Returns [code]true[/code] if buffer is successfully shaped.
1711 </description>
1712 </method>
1713 <method name="_shaped_text_next_character_pos" qualifiers="virtual const">
1714 <return type="int" />
1715 <param index="0" name="shaped" type="RID" />
1716 <param index="1" name="pos" type="int" />
1717 <description>
1718 Returns composite character end position closest to the [param pos].
1719 </description>
1720 </method>
1721 <method name="_shaped_text_next_grapheme_pos" qualifiers="virtual const">
1722 <return type="int" />
1723 <param index="0" name="shaped" type="RID" />
1724 <param index="1" name="pos" type="int" />
1725 <description>
1726 Returns grapheme end position closest to the [param pos].
1727 </description>
1728 </method>
1729 <method name="_shaped_text_overrun_trim_to_width" qualifiers="virtual">
1730 <return type="void" />
1731 <param index="0" name="shaped" type="RID" />
1732 <param index="1" name="width" type="float" />
1733 <param index="2" name="trim_flags" type="int" enum="TextServer.TextOverrunFlag" is_bitfield="true" />
1734 <description>
1735 Trims text if it exceeds the given width.
1736 </description>
1737 </method>
1738 <method name="_shaped_text_prev_character_pos" qualifiers="virtual const">
1739 <return type="int" />
1740 <param index="0" name="shaped" type="RID" />
1741 <param index="1" name="pos" type="int" />
1742 <description>
1743 Returns composite character start position closest to the [param pos].
1744 </description>
1745 </method>
1746 <method name="_shaped_text_prev_grapheme_pos" qualifiers="virtual const">
1747 <return type="int" />
1748 <param index="0" name="shaped" type="RID" />
1749 <param index="1" name="pos" type="int" />
1750 <description>
1751 Returns grapheme start position closest to the [param pos].
1752 </description>
1753 </method>
1754 <method name="_shaped_text_resize_object" qualifiers="virtual required">
1755 <return type="bool" />
1756 <param index="0" name="shaped" type="RID" />
1757 <param index="1" name="key" type="Variant" />
1758 <param index="2" name="size" type="Vector2" />
1759 <param index="3" name="inline_align" type="int" enum="InlineAlignment" />
1760 <param index="4" name="baseline" type="float" />
1761 <description>
1762 Sets new size and alignment of embedded object.
1763 </description>
1764 </method>
1765 <method name="_shaped_text_set_bidi_override" qualifiers="virtual">
1766 <return type="void" />
1767 <param index="0" name="shaped" type="RID" />
1768 <param index="1" name="override" type="Array" />
1769 <description>
1770 Overrides BiDi for the structured text.
1771 </description>
1772 </method>
1773 <method name="_shaped_text_set_custom_ellipsis" qualifiers="virtual">
1774 <return type="void" />
1775 <param index="0" name="shaped" type="RID" />
1776 <param index="1" name="char" type="int" />
1777 <description>
1778 Sets ellipsis character used for text clipping.
1779 </description>
1780 </method>
1781 <method name="_shaped_text_set_custom_punctuation" qualifiers="virtual">
1782 <return type="void" />
1783 <param index="0" name="shaped" type="RID" />
1784 <param index="1" name="punct" type="String" />
1785 <description>
1786 Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
1787 </description>
1788 </method>
1789 <method name="_shaped_text_set_direction" qualifiers="virtual">
1790 <return type="void" />
1791 <param index="0" name="shaped" type="RID" />
1792 <param index="1" name="direction" type="int" enum="TextServer.Direction" />
1793 <description>
1794 Sets desired text direction. If set to [constant TextServer.DIRECTION_AUTO], direction will be detected based on the buffer contents and current locale.
1795 </description>
1796 </method>
1797 <method name="_shaped_text_set_orientation" qualifiers="virtual">
1798 <return type="void" />
1799 <param index="0" name="shaped" type="RID" />
1800 <param index="1" name="orientation" type="int" enum="TextServer.Orientation" />
1801 <description>
1802 Sets desired text orientation.
1803 </description>
1804 </method>
1805 <method name="_shaped_text_set_preserve_control" qualifiers="virtual">
1806 <return type="void" />
1807 <param index="0" name="shaped" type="RID" />
1808 <param index="1" name="enabled" type="bool" />
1809 <description>
1810 If set to [code]true[/code] text buffer will display control characters.
1811 </description>
1812 </method>
1813 <method name="_shaped_text_set_preserve_invalid" qualifiers="virtual">
1814 <return type="void" />
1815 <param index="0" name="shaped" type="RID" />
1816 <param index="1" name="enabled" type="bool" />
1817 <description>
1818 If set to [code]true[/code] text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed.
1819 </description>
1820 </method>
1821 <method name="_shaped_text_set_spacing" qualifiers="virtual">
1822 <return type="void" />
1823 <param index="0" name="shaped" type="RID" />
1824 <param index="1" name="spacing" type="int" enum="TextServer.SpacingType" />
1825 <param index="2" name="value" type="int" />
1826 <description>
1827 Sets extra spacing added between glyphs or lines in pixels.
1828 </description>
1829 </method>
1830 <method name="_shaped_text_shape" qualifiers="virtual required">
1831 <return type="bool" />
1832 <param index="0" name="shaped" type="RID" />
1833 <description>
1834 Shapes buffer if it's not shaped. Returns [code]true[/code] if the string is shaped successfully.
1835 </description>
1836 </method>
1837 <method name="_shaped_text_sort_logical" qualifiers="virtual required">
1838 <return type="const Glyph*" />
1839 <param index="0" name="shaped" type="RID" />
1840 <description>
1841 Returns text glyphs in the logical order.
1842 </description>
1843 </method>
1844 <method name="_shaped_text_substr" qualifiers="virtual required const">
1845 <return type="RID" />
1846 <param index="0" name="shaped" type="RID" />
1847 <param index="1" name="start" type="int" />
1848 <param index="2" name="length" type="int" />
1849 <description>
1850 Returns text buffer for the substring of the text in the [param shaped] text buffer (including inline objects).
1851 </description>
1852 </method>
1853 <method name="_shaped_text_tab_align" qualifiers="virtual">
1854 <return type="float" />
1855 <param index="0" name="shaped" type="RID" />
1856 <param index="1" name="tab_stops" type="PackedFloat32Array" />
1857 <description>
1858 Aligns shaped text to the given tab-stops.
1859 </description>
1860 </method>
1861 <method name="_shaped_text_update_breaks" qualifiers="virtual">
1862 <return type="bool" />
1863 <param index="0" name="shaped" type="RID" />
1864 <description>
1865 Updates break points in the shaped text. This method is called by default implementation of text breaking functions.
1866 </description>
1867 </method>
1868 <method name="_shaped_text_update_justification_ops" qualifiers="virtual">
1869 <return type="bool" />
1870 <param index="0" name="shaped" type="RID" />
1871 <description>
1872 Updates justification points in the shaped text. This method is called by default implementation of text justification functions.
1873 </description>
1874 </method>
1875 <method name="_spoof_check" qualifiers="virtual const">
1876 <return type="bool" />
1877 <param index="0" name="string" type="String" />
1878 <description>
1879 Returns [code]true[/code] if [param string] is likely to be an attempt at confusing the reader.
1880 </description>
1881 </method>
1882 <method name="_string_get_character_breaks" qualifiers="virtual const">
1883 <return type="PackedInt32Array" />
1884 <param index="0" name="string" type="String" />
1885 <param index="1" name="language" type="String" />
1886 <description>
1887 Returns array of the composite character boundaries.
1888 </description>
1889 </method>
1890 <method name="_string_get_word_breaks" qualifiers="virtual const">
1891 <return type="PackedInt32Array" />
1892 <param index="0" name="string" type="String" />
1893 <param index="1" name="language" type="String" />
1894 <param index="2" name="chars_per_line" type="int" />
1895 <description>
1896 Returns an array of the word break boundaries. Elements in the returned array are the offsets of the start and end of words. Therefore the length of the array is always even.
1897 </description>
1898 </method>
1899 <method name="_string_to_lower" qualifiers="virtual const">
1900 <return type="String" />
1901 <param index="0" name="string" type="String" />
1902 <param index="1" name="language" type="String" />
1903 <description>
1904 Returns the string converted to [code]lowercase[/code].
1905 </description>
1906 </method>
1907 <method name="_string_to_title" qualifiers="virtual const">
1908 <return type="String" />
1909 <param index="0" name="string" type="String" />
1910 <param index="1" name="language" type="String" />
1911 <description>
1912 Returns the string converted to [code]Title Case[/code].
1913 </description>
1914 </method>
1915 <method name="_string_to_upper" qualifiers="virtual const">
1916 <return type="String" />
1917 <param index="0" name="string" type="String" />
1918 <param index="1" name="language" type="String" />
1919 <description>
1920 Returns the string converted to [code]UPPERCASE[/code].
1921 </description>
1922 </method>
1923 <method name="_strip_diacritics" qualifiers="virtual const">
1924 <return type="String" />
1925 <param index="0" name="string" type="String" />
1926 <description>
1927 Strips diacritics from the string.
1928 </description>
1929 </method>
1930 <method name="_tag_to_name" qualifiers="virtual const">
1931 <return type="String" />
1932 <param index="0" name="tag" type="int" />
1933 <description>
1934 Converts the given OpenType tag to the readable name of a feature, variation, script, or language.
1935 </description>
1936 </method>
1937 <method name="_unreference_oversampling_level" qualifiers="virtual">
1938 <return type="void" />
1939 <param index="0" name="oversampling" type="float" />
1940 <description>
1941 Decreases the reference count of the specified oversampling level, and frees the font cache for oversampling level when the reference count reaches zero. This method is called by [Viewport], and should not be used directly.
1942 </description>
1943 </method>
1944 </methods>
1945 </class>