diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-01 00:06:34 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-01 00:06:34 +0200 |
commit | 4aa0b5226790ea52e888e1de87466899010cda33 (patch) | |
tree | 7fdb05cbb934db1e1999dcc2879d3d9dac0fe358 | |
parent | 3c7eb6a4a9db84a79f2840cfa5dce1790c90fd45 (diff) | |
parent | 4fb07d46081a8feeeee6902fcfc4faa363acd499 (diff) | |
download | redot-engine-4aa0b5226790ea52e888e1de87466899010cda33.tar.gz |
Merge pull request #94443 from wjt/get_supported_variation_list-example-typo
Font: Fix typo in `get_supported_variation_list` example
-rw-r--r-- | doc/classes/Font.xml | 2 | ||||
-rw-r--r-- | doc/classes/FontVariation.xml | 4 |
2 files changed, 3 insertions, 3 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) diff --git a/doc/classes/FontVariation.xml b/doc/classes/FontVariation.xml index 8a09c49f48..1de6d695a9 100644 --- a/doc/classes/FontVariation.xml +++ b/doc/classes/FontVariation.xml @@ -9,8 +9,8 @@ [codeblocks] [gdscript] var fv = FontVariation.new() - fv.set_base_font(load("res://BarlowCondensed-Regular.ttf")) - fv.set_variation_embolden(1.2) + fv.base_font = load("res://BarlowCondensed-Regular.ttf") + fv.variation_embolden = 1.2 $Label.add_theme_font_override("font", fv) $Label.add_theme_font_size_override("font_size", 64) [/gdscript] |