1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TextServerExtension.xml.
- .. _class_TextServerExtension:
- TextServerExtension
- ===================
- **Inherits:** :ref:`TextServer<class_TextServer>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`TextServerAdvanced<class_TextServerAdvanced>`, :ref:`TextServerDummy<class_TextServerDummy>`, :ref:`TextServerFallback<class_TextServerFallback>`
- Base class for TextServer custom implementations (plugins).
- Description
- -----------
- External TextServer implementations should inherit from this class.
- Methods
- -------
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`create_font<class_TextServerExtension_method_create_font>` **(** **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`create_shaped_text<class_TextServerExtension_method_create_shaped_text>` **(** :ref:`Direction<enum_TextServer_Direction>` direction, :ref:`Orientation<enum_TextServer_Orientation>` orientation **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`draw_hex_code_box<class_TextServerExtension_method_draw_hex_code_box>` **(** :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_clear_glyphs<class_TextServerExtension_method_font_clear_glyphs>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_clear_kerning_map<class_TextServerExtension_method_font_clear_kerning_map>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_clear_size_cache<class_TextServerExtension_method_font_clear_size_cache>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_clear_textures<class_TextServerExtension_method_font_clear_textures>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_draw_glyph<class_TextServerExtension_method_font_draw_glyph>` **(** :ref:`RID<class_RID>` font_rid, :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_draw_glyph_outline<class_TextServerExtension_method_font_draw_glyph_outline>` **(** :ref:`RID<class_RID>` font_rid, :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`int<class_int>` outline_size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_ascent<class_TextServerExtension_method_font_get_ascent>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_descent<class_TextServerExtension_method_font_get_descent>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_embolden<class_TextServerExtension_method_font_get_embolden>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_face_count<class_TextServerExtension_method_font_get_face_count>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_face_index<class_TextServerExtension_method_font_get_face_index>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_fixed_size<class_TextServerExtension_method_font_get_fixed_size>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_get_generate_mipmaps<class_TextServerExtension_method_font_get_generate_mipmaps>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_global_oversampling<class_TextServerExtension_method_font_get_global_oversampling>` **(** **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`font_get_glyph_advance<class_TextServerExtension_method_font_get_glyph_advance>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`font_get_glyph_contours<class_TextServerExtension_method_font_get_glyph_contours>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` index **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_glyph_index<class_TextServerExtension_method_font_get_glyph_index>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` char, :ref:`int<class_int>` variation_selector **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`font_get_glyph_list<class_TextServerExtension_method_font_get_glyph_list>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`font_get_glyph_offset<class_TextServerExtension_method_font_get_glyph_offset>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`font_get_glyph_size<class_TextServerExtension_method_font_get_glyph_size>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_glyph_texture_idx<class_TextServerExtension_method_font_get_glyph_texture_idx>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`font_get_glyph_texture_rid<class_TextServerExtension_method_font_get_glyph_texture_rid>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`font_get_glyph_texture_size<class_TextServerExtension_method_font_get_glyph_texture_size>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2<class_Rect2>` | :ref:`font_get_glyph_uv_rect<class_TextServerExtension_method_font_get_glyph_uv_rect>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Hinting<enum_TextServer_Hinting>` | :ref:`font_get_hinting<class_TextServerExtension_method_font_get_hinting>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`font_get_kerning<class_TextServerExtension_method_font_get_kerning>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`font_get_kerning_list<class_TextServerExtension_method_font_get_kerning_list>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_get_language_support_override<class_TextServerExtension_method_font_get_language_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`font_get_language_support_overrides<class_TextServerExtension_method_font_get_language_support_overrides>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_msdf_pixel_range<class_TextServerExtension_method_font_get_msdf_pixel_range>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_msdf_size<class_TextServerExtension_method_font_get_msdf_size>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`font_get_name<class_TextServerExtension_method_font_get_name>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`font_get_opentype_feature_overrides<class_TextServerExtension_method_font_get_opentype_feature_overrides>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_oversampling<class_TextServerExtension_method_font_get_oversampling>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_scale<class_TextServerExtension_method_font_get_scale>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_get_script_support_override<class_TextServerExtension_method_font_get_script_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`font_get_script_support_overrides<class_TextServerExtension_method_font_get_script_support_overrides>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`font_get_size_cache_list<class_TextServerExtension_method_font_get_size_cache_list>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`FontStyle<enum_TextServer_FontStyle>` | :ref:`font_get_style<class_TextServerExtension_method_font_get_style>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`font_get_style_name<class_TextServerExtension_method_font_get_style_name>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`SubpixelPositioning<enum_TextServer_SubpixelPositioning>` | :ref:`font_get_subpixel_positioning<class_TextServerExtension_method_font_get_subpixel_positioning>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`font_get_supported_chars<class_TextServerExtension_method_font_get_supported_chars>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_get_texture_count<class_TextServerExtension_method_font_get_texture_count>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Image<class_Image>` | :ref:`font_get_texture_image<class_TextServerExtension_method_font_get_texture_image>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`font_get_texture_offsets<class_TextServerExtension_method_font_get_texture_offsets>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform2D<class_Transform2D>` | :ref:`font_get_transform<class_TextServerExtension_method_font_get_transform>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_underline_position<class_TextServerExtension_method_font_get_underline_position>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`font_get_underline_thickness<class_TextServerExtension_method_font_get_underline_thickness>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`font_get_variation_coordinates<class_TextServerExtension_method_font_get_variation_coordinates>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_has_char<class_TextServerExtension_method_font_has_char>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` char **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_is_antialiased<class_TextServerExtension_method_font_is_antialiased>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_is_force_autohinter<class_TextServerExtension_method_font_is_force_autohinter>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_is_language_supported<class_TextServerExtension_method_font_is_language_supported>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_is_multichannel_signed_distance_field<class_TextServerExtension_method_font_is_multichannel_signed_distance_field>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`font_is_script_supported<class_TextServerExtension_method_font_is_script_supported>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_glyph<class_TextServerExtension_method_font_remove_glyph>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_kerning<class_TextServerExtension_method_font_remove_kerning>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_language_support_override<class_TextServerExtension_method_font_remove_language_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_script_support_override<class_TextServerExtension_method_font_remove_script_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_size_cache<class_TextServerExtension_method_font_remove_size_cache>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_remove_texture<class_TextServerExtension_method_font_remove_texture>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_render_glyph<class_TextServerExtension_method_font_render_glyph>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` index **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_render_range<class_TextServerExtension_method_font_render_range>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_antialiased<class_TextServerExtension_method_font_set_antialiased>` **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` antialiased **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_ascent<class_TextServerExtension_method_font_set_ascent>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` ascent **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_data<class_TextServerExtension_method_font_set_data>` **(** :ref:`RID<class_RID>` font_rid, :ref:`PackedByteArray<class_PackedByteArray>` data **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_data_ptr<class_TextServerExtension_method_font_set_data_ptr>` **(** :ref:`RID<class_RID>` font_rid, const uint8_t* data_ptr, :ref:`int<class_int>` data_size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_descent<class_TextServerExtension_method_font_set_descent>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` descent **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_embolden<class_TextServerExtension_method_font_set_embolden>` **(** :ref:`RID<class_RID>` font_rid, :ref:`float<class_float>` strength **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_face_index<class_TextServerExtension_method_font_set_face_index>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` face_index **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_fixed_size<class_TextServerExtension_method_font_set_fixed_size>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` fixed_size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_force_autohinter<class_TextServerExtension_method_font_set_force_autohinter>` **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` force_autohinter **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_generate_mipmaps<class_TextServerExtension_method_font_set_generate_mipmaps>` **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` generate_mipmaps **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_global_oversampling<class_TextServerExtension_method_font_set_global_oversampling>` **(** :ref:`float<class_float>` oversampling **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_glyph_advance<class_TextServerExtension_method_font_set_glyph_advance>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` advance **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_glyph_offset<class_TextServerExtension_method_font_set_glyph_offset>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` offset **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_glyph_size<class_TextServerExtension_method_font_set_glyph_size>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` gl_size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_glyph_texture_idx<class_TextServerExtension_method_font_set_glyph_texture_idx>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`int<class_int>` texture_idx **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_glyph_uv_rect<class_TextServerExtension_method_font_set_glyph_uv_rect>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Rect2<class_Rect2>` uv_rect **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_hinting<class_TextServerExtension_method_font_set_hinting>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Hinting<enum_TextServer_Hinting>` hinting **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_kerning<class_TextServerExtension_method_font_set_kerning>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair, :ref:`Vector2<class_Vector2>` kerning **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_language_support_override<class_TextServerExtension_method_font_set_language_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language, :ref:`bool<class_bool>` supported **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_msdf_pixel_range<class_TextServerExtension_method_font_set_msdf_pixel_range>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` msdf_pixel_range **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_msdf_size<class_TextServerExtension_method_font_set_msdf_size>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` msdf_size **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_multichannel_signed_distance_field<class_TextServerExtension_method_font_set_multichannel_signed_distance_field>` **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` msdf **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_name<class_TextServerExtension_method_font_set_name>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` name **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_opentype_feature_overrides<class_TextServerExtension_method_font_set_opentype_feature_overrides>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Dictionary<class_Dictionary>` overrides **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_oversampling<class_TextServerExtension_method_font_set_oversampling>` **(** :ref:`RID<class_RID>` font_rid, :ref:`float<class_float>` oversampling **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_scale<class_TextServerExtension_method_font_set_scale>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` scale **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_script_support_override<class_TextServerExtension_method_font_set_script_support_override>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script, :ref:`bool<class_bool>` supported **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_style<class_TextServerExtension_method_font_set_style>` **(** :ref:`RID<class_RID>` font_rid, :ref:`FontStyle<enum_TextServer_FontStyle>` style **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_style_name<class_TextServerExtension_method_font_set_style_name>` **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` name_style **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_subpixel_positioning<class_TextServerExtension_method_font_set_subpixel_positioning>` **(** :ref:`RID<class_RID>` font_rid, :ref:`SubpixelPositioning<enum_TextServer_SubpixelPositioning>` subpixel_positioning **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_texture_image<class_TextServerExtension_method_font_set_texture_image>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index, :ref:`Image<class_Image>` image **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_texture_offsets<class_TextServerExtension_method_font_set_texture_offsets>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index, :ref:`PackedInt32Array<class_PackedInt32Array>` offset **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_transform<class_TextServerExtension_method_font_set_transform>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Transform2D<class_Transform2D>` transform **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_underline_position<class_TextServerExtension_method_font_set_underline_position>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` underline_position **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_underline_thickness<class_TextServerExtension_method_font_set_underline_thickness>` **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` underline_thickness **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`font_set_variation_coordinates<class_TextServerExtension_method_font_set_variation_coordinates>` **(** :ref:`RID<class_RID>` font_rid, :ref:`Dictionary<class_Dictionary>` variation_coordinates **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`font_supported_feature_list<class_TextServerExtension_method_font_supported_feature_list>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`font_supported_variation_list<class_TextServerExtension_method_font_supported_variation_list>` **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`format_number<class_TextServerExtension_method_format_number>` **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`free_rid<class_TextServerExtension_method_free_rid>` **(** :ref:`RID<class_RID>` rid **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_features<class_TextServerExtension_method_get_features>` **(** **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`get_hex_code_box_size<class_TextServerExtension_method_get_hex_code_box_size>` **(** :ref:`int<class_int>` size, :ref:`int<class_int>` index **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_name<class_TextServerExtension_method_get_name>` **(** **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_support_data_filename<class_TextServerExtension_method_get_support_data_filename>` **(** **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_support_data_info<class_TextServerExtension_method_get_support_data_info>` **(** **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has<class_TextServerExtension_method_has>` **(** :ref:`RID<class_RID>` rid **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_feature<class_TextServerExtension_method_has_feature>` **(** :ref:`Feature<enum_TextServer_Feature>` feature **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_locale_right_to_left<class_TextServerExtension_method_is_locale_right_to_left>` **(** :ref:`String<class_String>` locale **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`load_support_data<class_TextServerExtension_method_load_support_data>` **(** :ref:`String<class_String>` filename **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`name_to_tag<class_TextServerExtension_method_name_to_tag>` **(** :ref:`String<class_String>` name **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`parse_number<class_TextServerExtension_method_parse_number>` **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`parse_structured_text<class_TextServerExtension_method_parse_structured_text>` **(** :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` parser_type, :ref:`Array<class_Array>` args, :ref:`String<class_String>` text **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`percent_sign<class_TextServerExtension_method_percent_sign>` **(** :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`save_support_data<class_TextServerExtension_method_save_support_data>` **(** :ref:`String<class_String>` filename **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_get_span_count<class_TextServerExtension_method_shaped_get_span_count>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`shaped_get_span_meta<class_TextServerExtension_method_shaped_get_span_meta>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` index **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_set_span_update_font<class_TextServerExtension_method_shaped_set_span_update_font>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` index, :ref:`Array<class_Array>` fonts, :ref:`int<class_int>` size, :ref:`Dictionary<class_Dictionary>` opentype_features **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_add_object<class_TextServerExtension_method_shaped_text_add_object>` **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key, :ref:`Vector2<class_Vector2>` size, :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` inline_align, :ref:`int<class_int>` length **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_add_string<class_TextServerExtension_method_shaped_text_add_string>` **(** :ref:`RID<class_RID>` shaped, :ref:`String<class_String>` text, :ref:`Array<class_Array>` fonts, :ref:`int<class_int>` size, :ref:`Dictionary<class_Dictionary>` opentype_features, :ref:`String<class_String>` language, :ref:`Variant<class_Variant>` meta **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_clear<class_TextServerExtension_method_shaped_text_clear>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_draw<class_TextServerExtension_method_shaped_text_draw>` **(** :ref:`RID<class_RID>` shaped, :ref:`RID<class_RID>` canvas, :ref:`Vector2<class_Vector2>` pos, :ref:`float<class_float>` clip_l, :ref:`float<class_float>` clip_r, :ref:`Color<class_Color>` color **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_draw_outline<class_TextServerExtension_method_shaped_text_draw_outline>` **(** :ref:`RID<class_RID>` shaped, :ref:`RID<class_RID>` canvas, :ref:`Vector2<class_Vector2>` pos, :ref:`float<class_float>` clip_l, :ref:`float<class_float>` clip_r, :ref:`int<class_int>` outline_size, :ref:`Color<class_Color>` color **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_fit_to_width<class_TextServerExtension_method_shaped_text_fit_to_width>` **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`JustificationFlag<enum_TextServer_JustificationFlag>` jst_flags **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_get_ascent<class_TextServerExtension_method_shaped_text_get_ascent>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_get_carets<class_TextServerExtension_method_shaped_text_get_carets>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` position, CaretInfo* caret **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`shaped_text_get_custom_punctuation<class_TextServerExtension_method_shaped_text_get_custom_punctuation>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_get_descent<class_TextServerExtension_method_shaped_text_get_descent>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Direction<enum_TextServer_Direction>` | :ref:`shaped_text_get_direction<class_TextServerExtension_method_shaped_text_get_direction>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_dominant_direction_in_range<class_TextServerExtension_method_shaped_text_get_dominant_direction_in_range>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_ellipsis_glyph_count<class_TextServerExtension_method_shaped_text_get_ellipsis_glyph_count>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | const Glyph* | :ref:`shaped_text_get_ellipsis_glyphs<class_TextServerExtension_method_shaped_text_get_ellipsis_glyphs>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_ellipsis_pos<class_TextServerExtension_method_shaped_text_get_ellipsis_pos>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_glyph_count<class_TextServerExtension_method_shaped_text_get_glyph_count>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | const Glyph* | :ref:`shaped_text_get_glyphs<class_TextServerExtension_method_shaped_text_get_glyphs>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`shaped_text_get_grapheme_bounds<class_TextServerExtension_method_shaped_text_get_grapheme_bounds>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Direction<enum_TextServer_Direction>` | :ref:`shaped_text_get_inferred_direction<class_TextServerExtension_method_shaped_text_get_inferred_direction>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`shaped_text_get_line_breaks<class_TextServerExtension_method_shaped_text_get_line_breaks>` **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`int<class_int>` start, :ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>` break_flags **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`shaped_text_get_line_breaks_adv<class_TextServerExtension_method_shaped_text_get_line_breaks_adv>` **(** :ref:`RID<class_RID>` shaped, :ref:`PackedFloat32Array<class_PackedFloat32Array>` width, :ref:`int<class_int>` start, :ref:`bool<class_bool>` once, :ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>` break_flags **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2<class_Rect2>` | :ref:`shaped_text_get_object_rect<class_TextServerExtension_method_shaped_text_get_object_rect>` **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`shaped_text_get_objects<class_TextServerExtension_method_shaped_text_get_objects>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Orientation<enum_TextServer_Orientation>` | :ref:`shaped_text_get_orientation<class_TextServerExtension_method_shaped_text_get_orientation>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`shaped_text_get_parent<class_TextServerExtension_method_shaped_text_get_parent>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_get_preserve_control<class_TextServerExtension_method_shaped_text_get_preserve_control>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_get_preserve_invalid<class_TextServerExtension_method_shaped_text_get_preserve_invalid>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`shaped_text_get_range<class_TextServerExtension_method_shaped_text_get_range>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`shaped_text_get_selection<class_TextServerExtension_method_shaped_text_get_selection>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`shaped_text_get_size<class_TextServerExtension_method_shaped_text_get_size>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_spacing<class_TextServerExtension_method_shaped_text_get_spacing>` **(** :ref:`RID<class_RID>` shaped, :ref:`SpacingType<enum_TextServer_SpacingType>` spacing **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_get_trim_pos<class_TextServerExtension_method_shaped_text_get_trim_pos>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_get_underline_position<class_TextServerExtension_method_shaped_text_get_underline_position>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_get_underline_thickness<class_TextServerExtension_method_shaped_text_get_underline_thickness>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_get_width<class_TextServerExtension_method_shaped_text_get_width>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`shaped_text_get_word_breaks<class_TextServerExtension_method_shaped_text_get_word_breaks>` **(** :ref:`RID<class_RID>` shaped, :ref:`GraphemeFlag<enum_TextServer_GraphemeFlag>` grapheme_flags **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_hit_test_grapheme<class_TextServerExtension_method_shaped_text_hit_test_grapheme>` **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` coord **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_hit_test_position<class_TextServerExtension_method_shaped_text_hit_test_position>` **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` coord **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_is_ready<class_TextServerExtension_method_shaped_text_is_ready>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_next_grapheme_pos<class_TextServerExtension_method_shaped_text_next_grapheme_pos>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_overrun_trim_to_width<class_TextServerExtension_method_shaped_text_overrun_trim_to_width>` **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`TextOverrunFlag<enum_TextServer_TextOverrunFlag>` trim_flags **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`shaped_text_prev_grapheme_pos<class_TextServerExtension_method_shaped_text_prev_grapheme_pos>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_resize_object<class_TextServerExtension_method_shaped_text_resize_object>` **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key, :ref:`Vector2<class_Vector2>` size, :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` inline_align **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_bidi_override<class_TextServerExtension_method_shaped_text_set_bidi_override>` **(** :ref:`RID<class_RID>` shaped, :ref:`Array<class_Array>` override **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_custom_punctuation<class_TextServerExtension_method_shaped_text_set_custom_punctuation>` **(** :ref:`RID<class_RID>` shaped, :ref:`String<class_String>` punct **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_direction<class_TextServerExtension_method_shaped_text_set_direction>` **(** :ref:`RID<class_RID>` shaped, :ref:`Direction<enum_TextServer_Direction>` direction **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_orientation<class_TextServerExtension_method_shaped_text_set_orientation>` **(** :ref:`RID<class_RID>` shaped, :ref:`Orientation<enum_TextServer_Orientation>` orientation **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_preserve_control<class_TextServerExtension_method_shaped_text_set_preserve_control>` **(** :ref:`RID<class_RID>` shaped, :ref:`bool<class_bool>` enabled **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_preserve_invalid<class_TextServerExtension_method_shaped_text_set_preserve_invalid>` **(** :ref:`RID<class_RID>` shaped, :ref:`bool<class_bool>` enabled **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`shaped_text_set_spacing<class_TextServerExtension_method_shaped_text_set_spacing>` **(** :ref:`RID<class_RID>` shaped, :ref:`SpacingType<enum_TextServer_SpacingType>` spacing, :ref:`int<class_int>` value **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_shape<class_TextServerExtension_method_shaped_text_shape>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | const Glyph* | :ref:`shaped_text_sort_logical<class_TextServerExtension_method_shaped_text_sort_logical>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`shaped_text_substr<class_TextServerExtension_method_shaped_text_substr>` **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` length **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`shaped_text_tab_align<class_TextServerExtension_method_shaped_text_tab_align>` **(** :ref:`RID<class_RID>` shaped, :ref:`PackedFloat32Array<class_PackedFloat32Array>` tab_stops **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_update_breaks<class_TextServerExtension_method_shaped_text_update_breaks>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`shaped_text_update_justification_ops<class_TextServerExtension_method_shaped_text_update_justification_ops>` **(** :ref:`RID<class_RID>` shaped **)** |virtual| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`string_get_word_breaks<class_TextServerExtension_method_string_get_word_breaks>` **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`string_to_lower<class_TextServerExtension_method_string_to_lower>` **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`string_to_upper<class_TextServerExtension_method_string_to_upper>` **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`strip_diacritics<class_TextServerExtension_method_strip_diacritics>` **(** :ref:`String<class_String>` string **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`tag_to_name<class_TextServerExtension_method_tag_to_name>` **(** :ref:`int<class_int>` tag **)** |virtual| |const| |
- +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- Method Descriptions
- -------------------
- .. _class_TextServerExtension_method_create_font:
- - :ref:`RID<class_RID>` **create_font** **(** **)** |virtual|
- Creates new, empty font cache entry resource. To free the resulting resourec, use :ref:`free_rid<class_TextServerExtension_method_free_rid>` method.
- ----
- .. _class_TextServerExtension_method_create_shaped_text:
- - :ref:`RID<class_RID>` **create_shaped_text** **(** :ref:`Direction<enum_TextServer_Direction>` direction, :ref:`Orientation<enum_TextServer_Orientation>` orientation **)** |virtual|
- Creates new buffer for complex text layout, with the given ``direction`` and ``orientation``. To free the resulting buffer, use :ref:`free_rid<class_TextServerExtension_method_free_rid>` method.
- ----
- .. _class_TextServerExtension_method_draw_hex_code_box:
- - void **draw_hex_code_box** **(** :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const|
- Draws box displaying character hexadecimal code. Used for replacing missing characters.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_font_clear_glyphs:
- - void **font_clear_glyphs** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual|
- Removes all rendered glyphs information from the cache entry.
- ----
- .. _class_TextServerExtension_method_font_clear_kerning_map:
- - void **font_clear_kerning_map** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual|
- Removes all kerning overrides.
- ----
- .. _class_TextServerExtension_method_font_clear_size_cache:
- - void **font_clear_size_cache** **(** :ref:`RID<class_RID>` font_rid **)** |virtual|
- Removes all font sizes from the cache entry.
- ----
- .. _class_TextServerExtension_method_font_clear_textures:
- - void **font_clear_textures** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual|
- Removes all textures from font cache entry.
- ----
- .. _class_TextServerExtension_method_font_draw_glyph:
- - void **font_draw_glyph** **(** :ref:`RID<class_RID>` font_rid, :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const|
- Draws single glyph into a canvas item at the position, using ``font_rid`` at the size ``size``.
- ----
- .. _class_TextServerExtension_method_font_draw_glyph_outline:
- - void **font_draw_glyph_outline** **(** :ref:`RID<class_RID>` font_rid, :ref:`RID<class_RID>` canvas, :ref:`int<class_int>` size, :ref:`int<class_int>` outline_size, :ref:`Vector2<class_Vector2>` pos, :ref:`int<class_int>` index, :ref:`Color<class_Color>` color **)** |virtual| |const|
- Draws single glyph outline of size ``outline_size`` into a canvas item at the position, using ``font_rid`` at the size ``size``.
- ----
- .. _class_TextServerExtension_method_font_get_ascent:
- - :ref:`float<class_float>` **font_get_ascent** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns the font ascent (number of pixels above the baseline).
- ----
- .. _class_TextServerExtension_method_font_get_descent:
- - :ref:`float<class_float>` **font_get_descent** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns the font descent (number of pixels below the baseline).
- ----
- .. _class_TextServerExtension_method_font_get_embolden:
- - :ref:`float<class_float>` **font_get_embolden** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font embolden strength.
- ----
- .. _class_TextServerExtension_method_font_get_face_count:
- - :ref:`int<class_int>` **font_get_face_count** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns number of faces in the TrueType / OpenType collection.
- ----
- .. _class_TextServerExtension_method_font_get_face_index:
- - :ref:`int<class_int>` **font_get_face_index** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns an active face index in the TrueType / OpenType collection.
- ----
- .. _class_TextServerExtension_method_font_get_fixed_size:
- - :ref:`int<class_int>` **font_get_fixed_size** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns bitmap font fixed size.
- ----
- .. _class_TextServerExtension_method_font_get_generate_mipmaps:
- - :ref:`bool<class_bool>` **font_get_generate_mipmaps** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns ``true`` if font texture mipmap generation is enabled.
- ----
- .. _class_TextServerExtension_method_font_get_global_oversampling:
- - :ref:`float<class_float>` **font_get_global_oversampling** **(** **)** |virtual| |const|
- Returns the font oversampling factor, shared by all fonts in the TextServer.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_advance:
- - :ref:`Vector2<class_Vector2>` **font_get_glyph_advance** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns glyph advance (offset of the next glyph).
- ----
- .. _class_TextServerExtension_method_font_get_glyph_contours:
- - :ref:`Dictionary<class_Dictionary>` **font_get_glyph_contours** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` index **)** |virtual| |const|
- Returns outline contours of the glyph as a ``Dictionary`` with the following contents:
- \ ``points`` - :ref:`PackedVector3Array<class_PackedVector3Array>`, containing outline points. ``x`` and ``y`` are point coordinates. ``z`` is the type of the point, using the :ref:`ContourPointTag<enum_TextServer_ContourPointTag>` values.
- \ ``contours`` - :ref:`PackedInt32Array<class_PackedInt32Array>`, containing indices the end points of each contour.
- \ ``orientation`` - :ref:`bool<class_bool>`, contour orientation. If ``true``, clockwise contours must be filled.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_index:
- - :ref:`int<class_int>` **font_get_glyph_index** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` char, :ref:`int<class_int>` variation_selector **)** |virtual| |const|
- Returns the glyph index of a ``char``, optionally modified by the ``variation_selector``.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_list:
- - :ref:`Array<class_Array>` **font_get_glyph_list** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |const|
- Returns list of rendered glyphs in the cache entry.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_offset:
- - :ref:`Vector2<class_Vector2>` **font_get_glyph_offset** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns glyph offset from the baseline.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_size:
- - :ref:`Vector2<class_Vector2>` **font_get_glyph_size** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns size of the glyph.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_texture_idx:
- - :ref:`int<class_int>` **font_get_glyph_texture_idx** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns index of the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_texture_rid:
- - :ref:`RID<class_RID>` **font_get_glyph_texture_rid** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns resource id of the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_texture_size:
- - :ref:`Vector2<class_Vector2>` **font_get_glyph_texture_size** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns size of the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_get_glyph_uv_rect:
- - :ref:`Rect2<class_Rect2>` **font_get_glyph_uv_rect** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual| |const|
- Returns rectangle in the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_get_hinting:
- - :ref:`Hinting<enum_TextServer_Hinting>` **font_get_hinting** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns the font hinting mode. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_get_kerning:
- - :ref:`Vector2<class_Vector2>` **font_get_kerning** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair **)** |virtual| |const|
- Returns kerning for the pair of glyphs.
- ----
- .. _class_TextServerExtension_method_font_get_kerning_list:
- - :ref:`Array<class_Array>` **font_get_kerning_list** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns list of the kerning overrides.
- ----
- .. _class_TextServerExtension_method_font_get_language_support_override:
- - :ref:`bool<class_bool>` **font_get_language_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual|
- Returns ``true`` if support override is enabled for the ``language``.
- ----
- .. _class_TextServerExtension_method_font_get_language_support_overrides:
- - :ref:`PackedStringArray<class_PackedStringArray>` **font_get_language_support_overrides** **(** :ref:`RID<class_RID>` font_rid **)** |virtual|
- Returns list of language support overrides.
- ----
- .. _class_TextServerExtension_method_font_get_msdf_pixel_range:
- - :ref:`int<class_int>` **font_get_msdf_pixel_range** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns the width of the range around the shape between the minimum and maximum representable signed distance.
- ----
- .. _class_TextServerExtension_method_font_get_msdf_size:
- - :ref:`int<class_int>` **font_get_msdf_size** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns source font size used to generate MSDF textures.
- ----
- .. _class_TextServerExtension_method_font_get_name:
- - :ref:`String<class_String>` **font_get_name** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font family name.
- ----
- .. _class_TextServerExtension_method_font_get_opentype_feature_overrides:
- - :ref:`Dictionary<class_Dictionary>` **font_get_opentype_feature_overrides** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font OpenType feature set override.
- ----
- .. _class_TextServerExtension_method_font_get_oversampling:
- - :ref:`float<class_float>` **font_get_oversampling** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font oversampling factor, if set to ``0.0`` global oversampling factor is used instead. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_get_scale:
- - :ref:`float<class_float>` **font_get_scale** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns scaling factor of the color bitmap font.
- ----
- .. _class_TextServerExtension_method_font_get_script_support_override:
- - :ref:`bool<class_bool>` **font_get_script_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual|
- Returns ``true`` if support override is enabled for the ``script``.
- ----
- .. _class_TextServerExtension_method_font_get_script_support_overrides:
- - :ref:`PackedStringArray<class_PackedStringArray>` **font_get_script_support_overrides** **(** :ref:`RID<class_RID>` font_rid **)** |virtual|
- Returns list of script support overrides.
- ----
- .. _class_TextServerExtension_method_font_get_size_cache_list:
- - :ref:`Array<class_Array>` **font_get_size_cache_list** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns list of the font sizes in the cache. Each size is ``Vector2i`` with font size and outline size.
- ----
- .. _class_TextServerExtension_method_font_get_style:
- - :ref:`FontStyle<enum_TextServer_FontStyle>` **font_get_style** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font style flags, see :ref:`FontStyle<enum_TextServer_FontStyle>`.
- ----
- .. _class_TextServerExtension_method_font_get_style_name:
- - :ref:`String<class_String>` **font_get_style_name** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font style name.
- ----
- .. _class_TextServerExtension_method_font_get_subpixel_positioning:
- - :ref:`SubpixelPositioning<enum_TextServer_SubpixelPositioning>` **font_get_subpixel_positioning** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns font sub-pixel glyph positioning mode.
- ----
- .. _class_TextServerExtension_method_font_get_supported_chars:
- - :ref:`String<class_String>` **font_get_supported_chars** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns a string containing all the characters available in the font.
- ----
- .. _class_TextServerExtension_method_font_get_texture_count:
- - :ref:`int<class_int>` **font_get_texture_count** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual| |const|
- Returns number of textures used by font cache entry.
- ----
- .. _class_TextServerExtension_method_font_get_texture_image:
- - :ref:`Image<class_Image>` **font_get_texture_image** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual| |const|
- Returns font cache texture image data.
- ----
- .. _class_TextServerExtension_method_font_get_texture_offsets:
- - :ref:`PackedInt32Array<class_PackedInt32Array>` **font_get_texture_offsets** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual| |const|
- Returns array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
- ----
- .. _class_TextServerExtension_method_font_get_transform:
- - :ref:`Transform2D<class_Transform2D>` **font_get_transform** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns 2D transform applied to the font outlines.
- ----
- .. _class_TextServerExtension_method_font_get_underline_position:
- - :ref:`float<class_float>` **font_get_underline_position** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns pixel offset of the underline below the baseline.
- ----
- .. _class_TextServerExtension_method_font_get_underline_thickness:
- - :ref:`float<class_float>` **font_get_underline_thickness** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size **)** |virtual| |const|
- Returns thickness of the underline in pixels.
- ----
- .. _class_TextServerExtension_method_font_get_variation_coordinates:
- - :ref:`Dictionary<class_Dictionary>` **font_get_variation_coordinates** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns variation coordinates for the specified font cache entry. See :ref:`font_supported_variation_list<class_TextServerExtension_method_font_supported_variation_list>` for more info.
- ----
- .. _class_TextServerExtension_method_font_has_char:
- - :ref:`bool<class_bool>` **font_has_char** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` char **)** |virtual| |const|
- Returns ``true`` if a Unicode ``char`` is available in the font.
- ----
- .. _class_TextServerExtension_method_font_is_antialiased:
- - :ref:`bool<class_bool>` **font_is_antialiased** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns ``true`` if font 8-bit anitialiased glyph rendering is supported and enabled.
- ----
- .. _class_TextServerExtension_method_font_is_force_autohinter:
- - :ref:`bool<class_bool>` **font_is_force_autohinter** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns ``true`` if auto-hinting is supported and preferred over font built-in hinting. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_is_language_supported:
- - :ref:`bool<class_bool>` **font_is_language_supported** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual| |const|
- Returns ``true``, if font supports given language (`ISO 639 <https://en.wikipedia.org/wiki/ISO_639-1>`__ code).
- ----
- .. _class_TextServerExtension_method_font_is_multichannel_signed_distance_field:
- - :ref:`bool<class_bool>` **font_is_multichannel_signed_distance_field** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns ``true`` if glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data.
- ----
- .. _class_TextServerExtension_method_font_is_script_supported:
- - :ref:`bool<class_bool>` **font_is_script_supported** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual| |const|
- Returns ``true``, if font supports given script (ISO 15924 code).
- ----
- .. _class_TextServerExtension_method_font_remove_glyph:
- - void **font_remove_glyph** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph **)** |virtual|
- Removes specified rendered glyph information from the cache entry.
- ----
- .. _class_TextServerExtension_method_font_remove_kerning:
- - void **font_remove_kerning** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair **)** |virtual|
- Removes kerning override for the pair of glyphs.
- ----
- .. _class_TextServerExtension_method_font_remove_language_support_override:
- - void **font_remove_language_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language **)** |virtual|
- Remove language support override.
- ----
- .. _class_TextServerExtension_method_font_remove_script_support_override:
- - void **font_remove_script_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script **)** |virtual|
- Removes script support override.
- ----
- .. _class_TextServerExtension_method_font_remove_size_cache:
- - void **font_remove_size_cache** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size **)** |virtual|
- Removes specified font size from the cache entry.
- ----
- .. _class_TextServerExtension_method_font_remove_texture:
- - void **font_remove_texture** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index **)** |virtual|
- Removes specified texture from the cache entry.
- ----
- .. _class_TextServerExtension_method_font_render_glyph:
- - void **font_render_glyph** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` index **)** |virtual|
- Renders specified glyph to the font cache texture.
- ----
- .. _class_TextServerExtension_method_font_render_range:
- - void **font_render_range** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual|
- Renders the range of characters to the font cache texture.
- ----
- .. _class_TextServerExtension_method_font_set_antialiased:
- - void **font_set_antialiased** **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` antialiased **)** |virtual|
- If set to ``true``, 8-bit antialiased glyph rendering is used, otherwise 1-bit rendering is used. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_set_ascent:
- - void **font_set_ascent** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` ascent **)** |virtual|
- Sets the font ascent (number of pixels above the baseline).
- ----
- .. _class_TextServerExtension_method_font_set_data:
- - void **font_set_data** **(** :ref:`RID<class_RID>` font_rid, :ref:`PackedByteArray<class_PackedByteArray>` data **)** |virtual|
- Sets font source data, e.g contents of the dynamic font source file.
- ----
- .. _class_TextServerExtension_method_font_set_data_ptr:
- - void **font_set_data_ptr** **(** :ref:`RID<class_RID>` font_rid, const uint8_t* data_ptr, :ref:`int<class_int>` data_size **)** |virtual|
- Sets font source data, e.g contents of the dynamic font source file. ``data_ptr`` memory buffer must remain accessible during font lifetime.
- ----
- .. _class_TextServerExtension_method_font_set_descent:
- - void **font_set_descent** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` descent **)** |virtual|
- Sets the font descent (number of pixels below the baseline).
- ----
- .. _class_TextServerExtension_method_font_set_embolden:
- - void **font_set_embolden** **(** :ref:`RID<class_RID>` font_rid, :ref:`float<class_float>` strength **)** |virtual|
- Sets font embolden strength. If ``strength`` is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
- ----
- .. _class_TextServerExtension_method_font_set_face_index:
- - void **font_set_face_index** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` face_index **)** |virtual|
- Sets an active face index in the TrueType / OpenType collection.
- ----
- .. _class_TextServerExtension_method_font_set_fixed_size:
- - void **font_set_fixed_size** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` fixed_size **)** |virtual|
- Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.
- ----
- .. _class_TextServerExtension_method_font_set_force_autohinter:
- - void **font_set_force_autohinter** **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` force_autohinter **)** |virtual|
- If set to ``true`` auto-hinting is preferred over font built-in hinting.
- ----
- .. _class_TextServerExtension_method_font_set_generate_mipmaps:
- - void **font_set_generate_mipmaps** **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` generate_mipmaps **)** |virtual|
- If set to ``true`` font texture mipmap generation is enabled.
- ----
- .. _class_TextServerExtension_method_font_set_global_oversampling:
- - void **font_set_global_oversampling** **(** :ref:`float<class_float>` oversampling **)** |virtual|
- Sets oversampling factor, shared by all font in the TextServer.
- \ **Note:** This value can be automatically changed by display server.
- ----
- .. _class_TextServerExtension_method_font_set_glyph_advance:
- - void **font_set_glyph_advance** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` advance **)** |virtual|
- Sets glyph advance (offset of the next glyph).
- ----
- .. _class_TextServerExtension_method_font_set_glyph_offset:
- - void **font_set_glyph_offset** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` offset **)** |virtual|
- Sets glyph offset from the baseline.
- ----
- .. _class_TextServerExtension_method_font_set_glyph_size:
- - void **font_set_glyph_size** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Vector2<class_Vector2>` gl_size **)** |virtual|
- Sets size of the glyph.
- ----
- .. _class_TextServerExtension_method_font_set_glyph_texture_idx:
- - void **font_set_glyph_texture_idx** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`int<class_int>` texture_idx **)** |virtual|
- Sets index of the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_set_glyph_uv_rect:
- - void **font_set_glyph_uv_rect** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` glyph, :ref:`Rect2<class_Rect2>` uv_rect **)** |virtual|
- Sets rectangle in the cache texture containing the glyph.
- ----
- .. _class_TextServerExtension_method_font_set_hinting:
- - void **font_set_hinting** **(** :ref:`RID<class_RID>` font_rid, :ref:`Hinting<enum_TextServer_Hinting>` hinting **)** |virtual|
- Sets font hinting mode. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_set_kerning:
- - void **font_set_kerning** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`Vector2i<class_Vector2i>` glyph_pair, :ref:`Vector2<class_Vector2>` kerning **)** |virtual|
- Sets kerning for the pair of glyphs.
- ----
- .. _class_TextServerExtension_method_font_set_language_support_override:
- - void **font_set_language_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` language, :ref:`bool<class_bool>` supported **)** |virtual|
- Adds override for :ref:`font_is_language_supported<class_TextServerExtension_method_font_is_language_supported>`.
- ----
- .. _class_TextServerExtension_method_font_set_msdf_pixel_range:
- - void **font_set_msdf_pixel_range** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` msdf_pixel_range **)** |virtual|
- Sets the width of the range around the shape between the minimum and maximum representable signed distance.
- ----
- .. _class_TextServerExtension_method_font_set_msdf_size:
- - void **font_set_msdf_size** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` msdf_size **)** |virtual|
- Sets source font size used to generate MSDF textures.
- ----
- .. _class_TextServerExtension_method_font_set_multichannel_signed_distance_field:
- - void **font_set_multichannel_signed_distance_field** **(** :ref:`RID<class_RID>` font_rid, :ref:`bool<class_bool>` msdf **)** |virtual|
- If set to ``true``, 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.
- \ **Note:** MSDF font rendering does not render glyphs with overlapping shapes correctly. Overlapping shapes are not valid per the OpenType standard, but are still commonly found in many font files, especially those converted by Google Fonts. To avoid issues with overlapping glyphs, consider downloading the font file directly from the type foundry instead of relying on Google Fonts.
- ----
- .. _class_TextServerExtension_method_font_set_name:
- - void **font_set_name** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` name **)** |virtual|
- Sets the font family name.
- ----
- .. _class_TextServerExtension_method_font_set_opentype_feature_overrides:
- - void **font_set_opentype_feature_overrides** **(** :ref:`RID<class_RID>` font_rid, :ref:`Dictionary<class_Dictionary>` overrides **)** |virtual|
- Sets font OpenType feature set override.
- ----
- .. _class_TextServerExtension_method_font_set_oversampling:
- - void **font_set_oversampling** **(** :ref:`RID<class_RID>` font_rid, :ref:`float<class_float>` oversampling **)** |virtual|
- Sets font oversampling factor, if set to ``0.0`` global oversampling factor is used instead. Used by dynamic fonts only.
- ----
- .. _class_TextServerExtension_method_font_set_scale:
- - void **font_set_scale** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` scale **)** |virtual|
- Sets scaling factor of the color bitmap font.
- ----
- .. _class_TextServerExtension_method_font_set_script_support_override:
- - void **font_set_script_support_override** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` script, :ref:`bool<class_bool>` supported **)** |virtual|
- Adds override for :ref:`font_is_script_supported<class_TextServerExtension_method_font_is_script_supported>`.
- ----
- .. _class_TextServerExtension_method_font_set_style:
- - void **font_set_style** **(** :ref:`RID<class_RID>` font_rid, :ref:`FontStyle<enum_TextServer_FontStyle>` style **)** |virtual|
- Sets the font style flags, see :ref:`FontStyle<enum_TextServer_FontStyle>`.
- ----
- .. _class_TextServerExtension_method_font_set_style_name:
- - void **font_set_style_name** **(** :ref:`RID<class_RID>` font_rid, :ref:`String<class_String>` name_style **)** |virtual|
- Sets the font style name.
- ----
- .. _class_TextServerExtension_method_font_set_subpixel_positioning:
- - void **font_set_subpixel_positioning** **(** :ref:`RID<class_RID>` font_rid, :ref:`SubpixelPositioning<enum_TextServer_SubpixelPositioning>` subpixel_positioning **)** |virtual|
- Sets font sub-pixel glyph positioning mode.
- ----
- .. _class_TextServerExtension_method_font_set_texture_image:
- - void **font_set_texture_image** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index, :ref:`Image<class_Image>` image **)** |virtual|
- Sets font cache texture image data.
- ----
- .. _class_TextServerExtension_method_font_set_texture_offsets:
- - void **font_set_texture_offsets** **(** :ref:`RID<class_RID>` font_rid, :ref:`Vector2i<class_Vector2i>` size, :ref:`int<class_int>` texture_index, :ref:`PackedInt32Array<class_PackedInt32Array>` offset **)** |virtual|
- Sets array containing the first free pixel in the each column of texture. Should be the same size as texture width or empty.
- ----
- .. _class_TextServerExtension_method_font_set_transform:
- - void **font_set_transform** **(** :ref:`RID<class_RID>` font_rid, :ref:`Transform2D<class_Transform2D>` transform **)** |virtual|
- Sets 2D transform, applied to the font outlines, can be used for slanting, flipping and rotating glyphs.
- For example, to simulate italic typeface by slanting, apply the following transform ``Transform2D(1.0, slant, 0.0, 1.0, 0.0, 0.0)``.
- ----
- .. _class_TextServerExtension_method_font_set_underline_position:
- - void **font_set_underline_position** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` underline_position **)** |virtual|
- Sets pixel offset of the underline below the baseline.
- ----
- .. _class_TextServerExtension_method_font_set_underline_thickness:
- - void **font_set_underline_thickness** **(** :ref:`RID<class_RID>` font_rid, :ref:`int<class_int>` size, :ref:`float<class_float>` underline_thickness **)** |virtual|
- Sets thickness of the underline in pixels.
- ----
- .. _class_TextServerExtension_method_font_set_variation_coordinates:
- - void **font_set_variation_coordinates** **(** :ref:`RID<class_RID>` font_rid, :ref:`Dictionary<class_Dictionary>` variation_coordinates **)** |virtual|
- Sets variation coordinates for the specified font cache entry. See :ref:`font_supported_variation_list<class_TextServerExtension_method_font_supported_variation_list>` for more info.
- ----
- .. _class_TextServerExtension_method_font_supported_feature_list:
- - :ref:`Dictionary<class_Dictionary>` **font_supported_feature_list** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns the dictionary of the supported OpenType features.
- ----
- .. _class_TextServerExtension_method_font_supported_variation_list:
- - :ref:`Dictionary<class_Dictionary>` **font_supported_variation_list** **(** :ref:`RID<class_RID>` font_rid **)** |virtual| |const|
- Returns the dictionary of the supported OpenType variation coordinates.
- ----
- .. _class_TextServerExtension_method_format_number:
- - :ref:`String<class_String>` **format_number** **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const|
- Converts a number from the Western Arabic (0..9) to the numeral systems used in ``language``.
- ----
- .. _class_TextServerExtension_method_free_rid:
- - void **free_rid** **(** :ref:`RID<class_RID>` rid **)** |virtual|
- Frees an object created by this :ref:`TextServer<class_TextServer>`.
- ----
- .. _class_TextServerExtension_method_get_features:
- - :ref:`int<class_int>` **get_features** **(** **)** |virtual| |const|
- Returns text server features, see :ref:`Feature<enum_TextServer_Feature>`.
- ----
- .. _class_TextServerExtension_method_get_hex_code_box_size:
- - :ref:`Vector2<class_Vector2>` **get_hex_code_box_size** **(** :ref:`int<class_int>` size, :ref:`int<class_int>` index **)** |virtual| |const|
- Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters).
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_get_name:
- - :ref:`String<class_String>` **get_name** **(** **)** |virtual| |const|
- Returns the name of the server interface.
- ----
- .. _class_TextServerExtension_method_get_support_data_filename:
- - :ref:`String<class_String>` **get_support_data_filename** **(** **)** |virtual| |const|
- Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename.
- ----
- .. _class_TextServerExtension_method_get_support_data_info:
- - :ref:`String<class_String>` **get_support_data_info** **(** **)** |virtual| |const|
- Returns TextServer database (e.g. ICU break iterators and dictionaries) description.
- ----
- .. _class_TextServerExtension_method_has:
- - :ref:`bool<class_bool>` **has** **(** :ref:`RID<class_RID>` rid **)** |virtual|
- Returns ``true`` if ``rid`` is valid resource owned by this text server.
- ----
- .. _class_TextServerExtension_method_has_feature:
- - :ref:`bool<class_bool>` **has_feature** **(** :ref:`Feature<enum_TextServer_Feature>` feature **)** |virtual| |const|
- Returns ``true`` if the server supports a feature.
- ----
- .. _class_TextServerExtension_method_is_locale_right_to_left:
- - :ref:`bool<class_bool>` **is_locale_right_to_left** **(** :ref:`String<class_String>` locale **)** |virtual| |const|
- Returns ``true`` if locale is right-to-left.
- ----
- .. _class_TextServerExtension_method_load_support_data:
- - :ref:`bool<class_bool>` **load_support_data** **(** :ref:`String<class_String>` filename **)** |virtual|
- Loads optional TextServer database (e.g. ICU break iterators and dictionaries).
- ----
- .. _class_TextServerExtension_method_name_to_tag:
- - :ref:`int<class_int>` **name_to_tag** **(** :ref:`String<class_String>` name **)** |virtual| |const|
- Converts readable feature, variation, script or language name to OpenType tag.
- ----
- .. _class_TextServerExtension_method_parse_number:
- - :ref:`String<class_String>` **parse_number** **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const|
- Converts a number from the numeral systems used in ``language`` to Western Arabic (0..9).
- ----
- .. _class_TextServerExtension_method_parse_structured_text:
- - :ref:`Array<class_Array>` **parse_structured_text** **(** :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` parser_type, :ref:`Array<class_Array>` args, :ref:`String<class_String>` text **)** |virtual| |const|
- ----
- .. _class_TextServerExtension_method_percent_sign:
- - :ref:`String<class_String>` **percent_sign** **(** :ref:`String<class_String>` language **)** |virtual| |const|
- Returns percent sign used in the ``language``.
- ----
- .. _class_TextServerExtension_method_save_support_data:
- - :ref:`bool<class_bool>` **save_support_data** **(** :ref:`String<class_String>` filename **)** |virtual| |const|
- Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file.
- \ **Note:** This function is used by during project export, to include TextServer database.
- ----
- .. _class_TextServerExtension_method_shaped_get_span_count:
- - :ref:`int<class_int>` **shaped_get_span_count** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns number of text spans added using :ref:`shaped_text_add_string<class_TextServerExtension_method_shaped_text_add_string>` or :ref:`shaped_text_add_object<class_TextServerExtension_method_shaped_text_add_object>`.
- ----
- .. _class_TextServerExtension_method_shaped_get_span_meta:
- - :ref:`Variant<class_Variant>` **shaped_get_span_meta** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` index **)** |virtual| |const|
- Returns text span metadata.
- ----
- .. _class_TextServerExtension_method_shaped_set_span_update_font:
- - void **shaped_set_span_update_font** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` index, :ref:`Array<class_Array>` fonts, :ref:`int<class_int>` size, :ref:`Dictionary<class_Dictionary>` opentype_features **)** |virtual|
- Changes text span font, font size and OpenType features, without changing the text.
- ----
- .. _class_TextServerExtension_method_shaped_text_add_object:
- - :ref:`bool<class_bool>` **shaped_text_add_object** **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key, :ref:`Vector2<class_Vector2>` size, :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` inline_align, :ref:`int<class_int>` length **)** |virtual|
- Adds inline object to the text buffer, ``key`` must be unique. In the text, object is represented as ``length`` object replacement characters.
- ----
- .. _class_TextServerExtension_method_shaped_text_add_string:
- - :ref:`bool<class_bool>` **shaped_text_add_string** **(** :ref:`RID<class_RID>` shaped, :ref:`String<class_String>` text, :ref:`Array<class_Array>` fonts, :ref:`int<class_int>` size, :ref:`Dictionary<class_Dictionary>` opentype_features, :ref:`String<class_String>` language, :ref:`Variant<class_Variant>` meta **)** |virtual|
- Adds text span and font to draw it to the text buffer.
- ----
- .. _class_TextServerExtension_method_shaped_text_clear:
- - void **shaped_text_clear** **(** :ref:`RID<class_RID>` shaped **)** |virtual|
- Clears text buffer (removes text and inline objects).
- ----
- .. _class_TextServerExtension_method_shaped_text_draw:
- - void **shaped_text_draw** **(** :ref:`RID<class_RID>` shaped, :ref:`RID<class_RID>` canvas, :ref:`Vector2<class_Vector2>` pos, :ref:`float<class_float>` clip_l, :ref:`float<class_float>` clip_r, :ref:`Color<class_Color>` color **)** |virtual| |const|
- Draw shaped text into a canvas item at a given position, with ``color``. ``pos`` specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_draw_outline:
- - void **shaped_text_draw_outline** **(** :ref:`RID<class_RID>` shaped, :ref:`RID<class_RID>` canvas, :ref:`Vector2<class_Vector2>` pos, :ref:`float<class_float>` clip_l, :ref:`float<class_float>` clip_r, :ref:`int<class_int>` outline_size, :ref:`Color<class_Color>` color **)** |virtual| |const|
- Draw the outline of the shaped text into a canvas item at a given position, with ``color``. ``pos`` specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_fit_to_width:
- - :ref:`float<class_float>` **shaped_text_fit_to_width** **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`JustificationFlag<enum_TextServer_JustificationFlag>` jst_flags **)** |virtual|
- Adjusts text with to fit to specified width, returns new text width.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_ascent:
- - :ref:`float<class_float>` **shaped_text_get_ascent** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).
- ----
- .. _class_TextServerExtension_method_shaped_text_get_carets:
- - void **shaped_text_get_carets** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` position, CaretInfo* caret **)** |virtual| |const|
- Returns shapes of the carets corresponding to the character offset ``position`` in the text. Returned caret shape is 1 pixel wide rectangle.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_custom_punctuation:
- - :ref:`String<class_String>` **shaped_text_get_custom_punctuation** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_descent:
- - :ref:`float<class_float>` **shaped_text_get_descent** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).
- ----
- .. _class_TextServerExtension_method_shaped_text_get_direction:
- - :ref:`Direction<enum_TextServer_Direction>` **shaped_text_get_direction** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns direction of the text.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_dominant_direction_in_range:
- - :ref:`int<class_int>` **shaped_text_get_dominant_direction_in_range** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual| |const|
- Returns dominant direction of in the range of text.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_ellipsis_glyph_count:
- - :ref:`int<class_int>` **shaped_text_get_ellipsis_glyph_count** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns number of glyphs in the ellipsis.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_ellipsis_glyphs:
- - const Glyph* **shaped_text_get_ellipsis_glyphs** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns array of the glyphs in the ellipsis.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_ellipsis_pos:
- - :ref:`int<class_int>` **shaped_text_get_ellipsis_pos** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns position of the ellipsis.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_glyph_count:
- - :ref:`int<class_int>` **shaped_text_get_glyph_count** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns number of glyphs in the buffer.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_glyphs:
- - const Glyph* **shaped_text_get_glyphs** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns an array of glyphs in the visual order.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_grapheme_bounds:
- - :ref:`Vector2<class_Vector2>` **shaped_text_get_grapheme_bounds** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const|
- Returns composite character's bounds as offsets from the start of the line.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_inferred_direction:
- - :ref:`Direction<enum_TextServer_Direction>` **shaped_text_get_inferred_direction** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns direction of the text, inferred by the BiDi algorithm.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_line_breaks:
- - :ref:`PackedInt32Array<class_PackedInt32Array>` **shaped_text_get_line_breaks** **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`int<class_int>` start, :ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>` break_flags **)** |virtual| |const|
- Breaks text to the lines and returns character ranges for each line.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_line_breaks_adv:
- - :ref:`PackedInt32Array<class_PackedInt32Array>` **shaped_text_get_line_breaks_adv** **(** :ref:`RID<class_RID>` shaped, :ref:`PackedFloat32Array<class_PackedFloat32Array>` width, :ref:`int<class_int>` start, :ref:`bool<class_bool>` once, :ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>` break_flags **)** |virtual| |const|
- Breaks text to the lines and columns. Returns character ranges for each segment.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_object_rect:
- - :ref:`Rect2<class_Rect2>` **shaped_text_get_object_rect** **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key **)** |virtual| |const|
- Returns bounding rectangle of the inline object.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_objects:
- - :ref:`Array<class_Array>` **shaped_text_get_objects** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns array of inline objects.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_orientation:
- - :ref:`Orientation<enum_TextServer_Orientation>` **shaped_text_get_orientation** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- eturns text orientation.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_parent:
- - :ref:`RID<class_RID>` **shaped_text_get_parent** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns the parent buffer from which the substring originates.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_preserve_control:
- - :ref:`bool<class_bool>` **shaped_text_get_preserve_control** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns ``true`` if text buffer is configured to display control characters.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_preserve_invalid:
- - :ref:`bool<class_bool>` **shaped_text_get_preserve_invalid** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns ``true`` if text buffer is configured to display hexadecimal codes in place of invalid characters.
- \ **Note:** If set to ``false``, nothing is displayed in place of invalid characters.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_range:
- - :ref:`Vector2i<class_Vector2i>` **shaped_text_get_range** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns substring buffer character range in the parent buffer.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_selection:
- - :ref:`PackedVector2Array<class_PackedVector2Array>` **shaped_text_get_selection** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` end **)** |virtual| |const|
- Returns selection rectangles for the specified character range.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_size:
- - :ref:`Vector2<class_Vector2>` **shaped_text_get_size** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns size of the text.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_spacing:
- - :ref:`int<class_int>` **shaped_text_get_spacing** **(** :ref:`RID<class_RID>` shaped, :ref:`SpacingType<enum_TextServer_SpacingType>` spacing **)** |virtual| |const|
- Returns extra spacing added between glyphs or lines in pixels.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_trim_pos:
- - :ref:`int<class_int>` **shaped_text_get_trim_pos** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns the position of the overrun trim.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_underline_position:
- - :ref:`float<class_float>` **shaped_text_get_underline_position** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns pixel offset of the underline below the baseline.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_underline_thickness:
- - :ref:`float<class_float>` **shaped_text_get_underline_thickness** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns thickness of the underline.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_width:
- - :ref:`float<class_float>` **shaped_text_get_width** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns width (for horizontal layout) or height (for vertical) of the text.
- ----
- .. _class_TextServerExtension_method_shaped_text_get_word_breaks:
- - :ref:`PackedInt32Array<class_PackedInt32Array>` **shaped_text_get_word_breaks** **(** :ref:`RID<class_RID>` shaped, :ref:`GraphemeFlag<enum_TextServer_GraphemeFlag>` grapheme_flags **)** |virtual| |const|
- Breaks text into words and returns array of character ranges.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_hit_test_grapheme:
- - :ref:`int<class_int>` **shaped_text_hit_test_grapheme** **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` coord **)** |virtual| |const|
- Returns grapheme index at the specified pixel offset at the baseline, or ``-1`` if none is found.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_hit_test_position:
- - :ref:`int<class_int>` **shaped_text_hit_test_position** **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` coord **)** |virtual| |const|
- Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_is_ready:
- - :ref:`bool<class_bool>` **shaped_text_is_ready** **(** :ref:`RID<class_RID>` shaped **)** |virtual| |const|
- Returns ``true`` if buffer is successfully shaped.
- ----
- .. _class_TextServerExtension_method_shaped_text_next_grapheme_pos:
- - :ref:`int<class_int>` **shaped_text_next_grapheme_pos** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const|
- Returns composite character end position closest to the ``pos``.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_overrun_trim_to_width:
- - void **shaped_text_overrun_trim_to_width** **(** :ref:`RID<class_RID>` shaped, :ref:`float<class_float>` width, :ref:`TextOverrunFlag<enum_TextServer_TextOverrunFlag>` trim_flags **)** |virtual|
- Trims text if it exceeds the given width.
- ----
- .. _class_TextServerExtension_method_shaped_text_prev_grapheme_pos:
- - :ref:`int<class_int>` **shaped_text_prev_grapheme_pos** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` pos **)** |virtual| |const|
- Returns composite character start position closest to the ``pos``.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_shaped_text_resize_object:
- - :ref:`bool<class_bool>` **shaped_text_resize_object** **(** :ref:`RID<class_RID>` shaped, :ref:`Variant<class_Variant>` key, :ref:`Vector2<class_Vector2>` size, :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` inline_align **)** |virtual|
- Sets new size and alignment of embedded object.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_bidi_override:
- - void **shaped_text_set_bidi_override** **(** :ref:`RID<class_RID>` shaped, :ref:`Array<class_Array>` override **)** |virtual|
- Overrides BiDi for the structured text.
- Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_custom_punctuation:
- - void **shaped_text_set_custom_punctuation** **(** :ref:`RID<class_RID>` shaped, :ref:`String<class_String>` punct **)** |virtual|
- Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_direction:
- - void **shaped_text_set_direction** **(** :ref:`RID<class_RID>` shaped, :ref:`Direction<enum_TextServer_Direction>` direction **)** |virtual|
- Sets desired text direction. If set to ``TEXT_DIRECTION_AUTO``, direction will be detected based on the buffer contents and current locale.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_orientation:
- - void **shaped_text_set_orientation** **(** :ref:`RID<class_RID>` shaped, :ref:`Orientation<enum_TextServer_Orientation>` orientation **)** |virtual|
- Sets desired text orientation.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_preserve_control:
- - void **shaped_text_set_preserve_control** **(** :ref:`RID<class_RID>` shaped, :ref:`bool<class_bool>` enabled **)** |virtual|
- If set to ``true`` text buffer will display control characters.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_preserve_invalid:
- - void **shaped_text_set_preserve_invalid** **(** :ref:`RID<class_RID>` shaped, :ref:`bool<class_bool>` enabled **)** |virtual|
- If set to ``true`` text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed.
- ----
- .. _class_TextServerExtension_method_shaped_text_set_spacing:
- - void **shaped_text_set_spacing** **(** :ref:`RID<class_RID>` shaped, :ref:`SpacingType<enum_TextServer_SpacingType>` spacing, :ref:`int<class_int>` value **)** |virtual|
- Sets extra spacing added between glyphs or lines in pixels.
- ----
- .. _class_TextServerExtension_method_shaped_text_shape:
- - :ref:`bool<class_bool>` **shaped_text_shape** **(** :ref:`RID<class_RID>` shaped **)** |virtual|
- Shapes buffer if it's not shaped. Returns ``true`` if the string is shaped successfully.
- ----
- .. _class_TextServerExtension_method_shaped_text_sort_logical:
- - const Glyph* **shaped_text_sort_logical** **(** :ref:`RID<class_RID>` shaped **)** |virtual|
- Returns text glyphs in the logical order.
- ----
- .. _class_TextServerExtension_method_shaped_text_substr:
- - :ref:`RID<class_RID>` **shaped_text_substr** **(** :ref:`RID<class_RID>` shaped, :ref:`int<class_int>` start, :ref:`int<class_int>` length **)** |virtual| |const|
- Returns text buffer for the substring of the text in the ``shaped`` text buffer (including inline objects).
- ----
- .. _class_TextServerExtension_method_shaped_text_tab_align:
- - :ref:`float<class_float>` **shaped_text_tab_align** **(** :ref:`RID<class_RID>` shaped, :ref:`PackedFloat32Array<class_PackedFloat32Array>` tab_stops **)** |virtual|
- Aligns shaped text to the given tab-stops.
- ----
- .. _class_TextServerExtension_method_shaped_text_update_breaks:
- - :ref:`bool<class_bool>` **shaped_text_update_breaks** **(** :ref:`RID<class_RID>` shaped **)** |virtual|
- Updates line breaking positions in the text buffer.
- \ **Note:** This method is used by default line/word breaking methods, and its implementation might be omitted if custom line breaking in implemented.
- ----
- .. _class_TextServerExtension_method_shaped_text_update_justification_ops:
- - :ref:`bool<class_bool>` **shaped_text_update_justification_ops** **(** :ref:`RID<class_RID>` shaped **)** |virtual|
- Updates line justification positions (word breaks and elongations) in the text buffer.
- \ **Note:** This method is used by default line/word breaking methods, and its implementation might be omitted if custom line breaking in implemented.
- ----
- .. _class_TextServerExtension_method_string_get_word_breaks:
- - :ref:`PackedInt32Array<class_PackedInt32Array>` **string_get_word_breaks** **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const|
- Returns array of the word break character offsets.
- ----
- .. _class_TextServerExtension_method_string_to_lower:
- - :ref:`String<class_String>` **string_to_lower** **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const|
- Returns the string converted to lowercase.
- ----
- .. _class_TextServerExtension_method_string_to_upper:
- - :ref:`String<class_String>` **string_to_upper** **(** :ref:`String<class_String>` string, :ref:`String<class_String>` language **)** |virtual| |const|
- Returns the string converted to uppercase.
- ----
- .. _class_TextServerExtension_method_strip_diacritics:
- - :ref:`String<class_String>` **strip_diacritics** **(** :ref:`String<class_String>` string **)** |virtual| |const|
- Strips diacritics from the string.
- \ **Note:** If this method is not implemented in the plugin, the default implementation will be used.
- ----
- .. _class_TextServerExtension_method_tag_to_name:
- - :ref:`String<class_String>` **tag_to_name** **(** :ref:`int<class_int>` tag **)** |virtual| |const|
- Converts OpenType tag to readable feature, variation, script or language name.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|