Open Amarounek opened 1 month ago
Hi @Amarounek,
Are you saying that the font specification works if you do it at a lower level, instead of with a top-level configure? Or that setting to Roboto never works?
chart.save
uses vl-convert. There is some info on font configuration here https://github.com/vega/vl-convert?tab=readme-ov-file#system-font-requirements.
In particular, if you can locate the directory that contains the Roboto
font on your system you can register the fonts with:
import vl_convert as vlc
vlc.register_font_directory('/path/to/roboto')
That said, usually when a font can't be located the chart falls back to using a generic system font, so it's surprising that no text is displayed.
@jonmmease Thanks for your time.
I've tried the lower-level (.configure_axis(labelFont='Arial',)
and yes, the targeted aspect also disappeared (Labels). Ok I will tried the vlc register later...
What happened?
Hey,
I want to save my figure to PNG with a different font but it doesn't seem to work properly.
My mini snippet:
What would you like to happen instead?
Actually, it is working fine if I don't configure the font overall...
Which version of Altair are you using?
5.4.1