feat: updated engine

This commit is contained in:
Sara Gerretsen 2026-07-10 17:04:34 +02:00
parent cbe99774ff
commit f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="TextServer" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<class name="TextServer" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
A server interface for font management and text rendering.
</brief_description>
@ -406,6 +406,36 @@
Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
</description>
</method>
<method name="font_get_palette_colors" qualifiers="const">
<return type="PackedColorArray" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the array in the predefined color palette at [param index]. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using [method font_set_palette_custom_colors].
</description>
</method>
<method name="font_get_palette_count" qualifiers="const">
<return type="int" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
</description>
</method>
<method name="font_get_palette_custom_colors" qualifiers="const">
<return type="PackedColorArray" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns array of custom colors to override predefined palette.
</description>
</method>
<method name="font_get_palette_name" qualifiers="const">
<return type="String" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the name of the predefined color palette at [param index]. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
</description>
</method>
<method name="font_get_scale" qualifiers="const">
<return type="float" />
<param index="0" name="font_rid" type="RID" />
@ -542,6 +572,13 @@
Returns thickness of the underline in pixels.
</description>
</method>
<method name="font_get_used_palette" qualifiers="const">
<return type="int" />
<param index="0" name="font_rid" type="RID" />
<description>
Returns used palette index.
</description>
</method>
<method name="font_get_variation_coordinates" qualifiers="const">
<return type="Dictionary" />
<param index="0" name="font_rid" type="RID" />
@ -882,7 +919,7 @@
<method name="font_set_modulate_color_glyphs">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="force_autohinter" type="bool" />
<param index="1" name="modulate" type="bool" />
<description>
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
</description>
@ -936,6 +973,14 @@
If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See [member Viewport.oversampling]. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
</description>
</method>
<method name="font_set_palette_custom_colors">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="colors" type="PackedColorArray" />
<description>
Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use [code]Color(0, 0, 0, 0)[/code], to keep predefined palette color at specific position.
</description>
</method>
<method name="font_set_scale">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
@ -1044,6 +1089,14 @@
Sets thickness of the underline in pixels.
</description>
</method>
<method name="font_set_used_palette">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
<param index="1" name="index" type="int" />
<description>
Sets used palette index.
</description>
</method>
<method name="font_set_variation_coordinates">
<return type="void" />
<param index="0" name="font_rid" type="RID" />
@ -1111,6 +1164,12 @@
Returns the name of the server interface.
</description>
</method>
<method name="get_short_name" qualifiers="const">
<return type="String" />
<description>
Returns the short name of the server interface. This short name can be used as a value for the [code]--text-driver[/code] [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url] (the full name is also supported for compatibility, but it must be quoted if it contains spaces).
</description>
</method>
<method name="get_support_data" qualifiers="const">
<return type="PackedByteArray" />
<description>