How to change font size?


  • IGA22 replied to this.
  • The decision was shown by the user of ababen.

    extends Label
    
    func _ready():
    	
    	add_theme_font_size_override("font_size", 40)
    
    	pass

    IGA22

    In documentation incorrect data.
    self.set_size() moves a font but does not change the size.

    Font size can be received through: self.get_theme_default_font_size()
    How to change font size?

    Earlier it worked

    How it works so:

    The decision was shown by the user of ababen.

    extends Label
    
    func _ready():
    	
    	add_theme_font_size_override("font_size", 40)
    
    	pass