Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
SystemFont¶
Inherits: Font < Resource < RefCounted < Object
A font loaded from a system font. Falls back to a default theme font if not implemented on the host OS.
Description¶
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 fine 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.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions¶
bool allow_system_fallback = true
If set to true
, system fonts can be automatically used as fallbacks.
FontAntialiasing antialiasing = 1
void set_antialiasing ( FontAntialiasing value )
FontAntialiasing get_antialiasing ( )
Font anti-aliasing mode.
bool font_italic = false
If set to true
, italic or oblique font is preferred.
PackedStringArray font_names = PackedStringArray()
void set_font_names ( PackedStringArray value )
PackedStringArray get_font_names ( )
Array of font family names to search, first matching font found is used.
int font_stretch =