File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 279279 To print available variation axes of a variable font:
280280 [codeblock]
281281 var fv = FontVariation.new()
282- fv.set_base_font = load("res://RobotoFlex.ttf")
282+ fv.base_font = load("res://RobotoFlex.ttf")
283283 var variation_list = fv.get_supported_variation_list()
284284 for tag in variation_list:
285285 var name = TextServerManager.get_primary_interface().tag_to_name(tag)
Original file line number Diff line number Diff line change 99 [codeblocks]
1010 [gdscript]
1111 var fv = FontVariation.new()
12- fv.set_base_font( load("res://BarlowCondensed-Regular.ttf") )
13- fv.set_variation_embolden( 1.2)
12+ fv.base_font = load("res://BarlowCondensed-Regular.ttf")
13+ fv.variation_embolden = 1.2
1414 $Label.add_theme_font_override("font", fv)
1515 $Label.add_theme_font_size_override("font_size", 64)
1616 [/gdscript]
You can’t perform that action at this time.
0 commit comments