[ANN] Makie.jl 0.19

I forgot to mention the other kind-of-breaking change that is also text related! So far, one would often see

f = Figure(..., font = "Arial")

to make a figure where Axis decorations and other text used the font Arial instead of the default TeX Gyre Heros Makie.

But this hasn’t worked well anymore ever since axis titles were bold by default, because there was no way to also change all bold fonts. One would have to go to the attributes of Axis, Axis3, Legend, etc. directly.

Now, the way to go is:

f = Figure(..., fonts = (; regular = "Arial", bold = "Arial bold"))`

Notice it’s fonts instead of font.

Text with font = :regular will resolve to Arial, text with font = :bold will resolve to Arial Bold.
This makes it easier to theme fonts across the figure.

Refer to this part of the docs for more info: https://docs.makie.org/stable/documentation/fonts/index.html

9 Likes