Font importing - bitmap doesn't scale, distance field too antialiased

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rinart73
:warning: Old Version Published before Godot 3 was released.

I use this code for changing font size:

func _ready():
  self.get_font("Chadwick_Cyrillic", "").set_height(6)

But bitmap font doesn’t scale. I mean, a cursor scales but not font. I tried several fonts.
As for distance field it becomes super-antialiased glowing neon font.

And, by the way, it doesn’t scales too.

:bust_in_silhouette: Reply From: Daniel Lewan

Godot 2.1 will contain DynamicFont resource that allows dynamic font loading and rendering. You can load ttf files using it. If you want to use it now you have to compile Godot from source

Thx, how to access, via GDScript, size property?

I’ve tried:

get_node("Label").set("custom_fonts/font:font/size", 100)

with no success…
Any suggestions?

jospic | 2016-06-24 11:07