SystemFont
Hereda: Font < Resource < RefCounted < Object
Una fuente cargada desde una fuente del sistema. Recurre a una fuente de tema por defecto si no está implementada en el SO anfitrión.
Descripción
SystemFont loads a font from a system font with the first matching name from font_names.
It will attempt to match font style, but it's not guaranteed.
The returned font might be part of a font collection or be a variable font with OpenType "weight", "width" and/or "italic" features set.
You can create FontVariation of the system font for precise control over its features.
Note: This class is implemented on iOS, Linux, macOS and Windows, on other platforms it will fallback to default theme font.
Propiedades
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Descripciones de Propiedades
bool allow_system_fallback = true 🔗
Si se establece en true, las fuentes del sistema se pueden utilizar automáticamente como alternativas.
FontAntialiasing antialiasing = 1 🔗
void set_antialiasing(value: FontAntialiasing)
FontAntialiasing get_antialiasing()
Modo de antialiasing de la fuente.
bool disable_embedded_bitmaps = true 🔗
If set to true, embedded font bitmap loading is disabled (bitmap-only and color fonts ignore this property).
Si se establece en true, se prefiere la fuente cursiva u oblicua.
PackedStringArray font_names = PackedStringArray() 🔗
void set_font_names(value: PackedStringArray)
PackedStringArray get_font_names()
Array de nombres de familias de fuentes a buscar, se utiliza la primera fuente encontrada que coincida.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
Cantidad de estiramiento de la fuente preferida, en comparación con un ancho normal. Un valor porcentual entre 50% y 200%.
Peso (grosor) preferido de la fuente. Un valor en el rango 100...999, el peso normal de la fuente es 400, el peso de la fuente en negrita es 700.
bool force_autohinter = false 🔗
Si se establece como true, se admite y prefiere el hinting automático sobre el hinting incorporado de la fuente.
bool generate_mipmaps = false 🔗
Si se establece en true, se generan mipmaps para las texturas de la fuente.
Modo de sugerencia de fuente.
bool keep_rounding_remainders = true 🔗
Si se establece en true, al alinear los glifos a los límites de los píxeles, los restos de redondeo se acumulan para asegurar una distribución de glifos más uniforme. Este ajuste no tiene efecto si el posicionamiento subpíxel está habilitado.
bool modulate_color_glyphs = false 🔗
If set to true, color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
The width of the range around the shape between the minimum and maximum representable signed distance. If using font outlines, msdf_pixel_range must be set to at least twice the size of the largest font outline. The default msdf_pixel_range value of 16 allows outline sizes up to 8 to look correct.
Source font size used to generate MSDF textures. Higher values allow for more precision, but are slower to render and require more memory. Only increase this value if you notice a visible lack of precision in glyph rendering.
bool multichannel_signed_distance_field = false 🔗
void set_multichannel_signed_distance_field(value: bool)
bool is_multichannel_signed_distance_field()
Si se establece en true, los glifos de todos los tamaños se renderizan utilizando un único campo de distancia con signo multicanal generado a partir de los datos vectoriales de la fuente dinámica.
If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See Viewport.oversampling. This value doesn't override the oversampling parameter of draw_* methods.
SubpixelPositioning subpixel_positioning = 1 🔗
void set_subpixel_positioning(value: SubpixelPositioning)
SubpixelPositioning get_subpixel_positioning()
Modo de posicionamiento de subpíxeles de los glifos de la fuente. El posicionamiento de subpíxeles proporciona un texto más nítido y un mejor kerning para tamaños de fuente más pequeños, a costa del uso de memoria y la velocidad de rasterización de la fuente. Utiliza TextServer.SUBPIXEL_POSITIONING_AUTO para activarlo automáticamente según el tamaño de la fuente.