I used to be able to use italics when using the Arial font in Makie, but for some reason, it no longer works. Below are two code snippets, one using Arial, and one using Verdana (both from the same ttf-mscorefonts-installer that provides microsoft fonts for linux):
fig = Figure(
size = (17/2.54*72, 200.0),
fontsize = 8,
fonts = (; regular = "Arial", bold = "Arial bold", italic = "Arial italic"),
figure_padding = (0.5, 5.0, 3.0, 5.0) # L, R, B, T
)
ax = Axis(fig[1,1]; xlabel = rich("Regular, ", rich("Bold, ", font = :bold), rich("Italic", font = :italic)))
lines!(ax, [0,1], [0,1])
fig
Produces:
fig = Figure(
size = (17/2.54*72, 200.0),
fontsize = 8,
fonts = (; regular = "Verdana", bold = "Verdana bold", italic = "Verdana italic"),
figure_padding = (0.5, 5.0, 3.0, 5.0) # L, R, B, T
)
ax = Axis(fig[1,1]; xlabel = rich("Regular, ", rich("Bold, ", font = :bold), rich("Italic", font = :italic)))
lines!(ax, [0,1], [0,1])
fig
Produces:
I’m not sure this is an issue with Makie or some problem with the font files, but regardless, I’d happily take any clues on how to possibly resolve the issue.
I’m on Linux Mint 22.2 Cinnamon.
Julia Version 1.11.7
Commit f2b3dbda30a (2025-09-08 12:10 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 12 Ă— Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
Environment:
JULIA_EDITOR = code
JULIA_VSCODE_REPL = 1
Output of packages:
Status `~/.julia/environments/v1.11/Project.toml`
[6e4b80f9] BenchmarkTools v1.6.3
[13f3f980] CairoMakie v0.15.7
[e9467ef8] GLMakie v0.13.7

