Skip to content

Commit

Permalink
Merge pull request godotengine#94443 from wjt/get_supported_variation…
Browse files Browse the repository at this point in the history
…_list-example-typo

Font: Fix typo in `get_supported_variation_list` example
  • Loading branch information
akien-mga committed Jul 31, 2024
2 parents 3c7eb6a + 4fb07d4 commit 4aa0b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/classes/Font.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions doc/classes/FontVariation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4aa0b52

Please sign in to comment.