summaryrefslogtreecommitdiffstats
path: root/doc/classes/Font.xml
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2024-07-16 18:01:53 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-07-31 23:16:30 +0200
commit4fb07d46081a8feeeee6902fcfc4faa363acd499 (patch)
treeb8e318a0d01b514189ba2a1bcbbd4d58e7380fae /doc/classes/Font.xml
parentb6dee96f68d5bd033e080f64f2c18a0dc62f469a (diff)
downloadredot-engine-4fb07d46081a8feeeee6902fcfc4faa363acd499.tar.gz
Font: Fix typo in get_supported_variation_list example
FontVariation.set_base_font is a function, not a property. The property is FontVariation.base_font.
Diffstat (limited to 'doc/classes/Font.xml')
-rw-r--r--doc/classes/Font.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml
index e979a0b875..0b487f8525 100644
--- a/doc/classes/Font.xml
+++ b/doc/classes/Font.xml
@@ -279,7 +279,7 @@
To print available variation axes of a variable font:
[codeblock]
var fv = FontVariation.new()
- fv.set_base_font = load("res://RobotoFlex.ttf")
+ fv.base_font = load("res://RobotoFlex.ttf")
var variation_list = fv.get_supported_variation_list()
for tag in variation_list:
var name = TextServerManager.get_primary_interface().tag_to_name(tag)