CairoMakie broken rendering of axis and ticklabels

I am using CairoMakie to plot some results but found that in some circumstances some characters in axis labels and/or tick labels are rendered as boxes. For example, this code

using CairoMakie
fig = Figure(size=(200,200))
ax = Axis(fig[1,1], xlabel = "x label")
heatmap!(ax, rand(100,100))
save("test.pdf", fig)

produces this image with a mangled x label.

This doesn’t seem to happen when using GLMakie.

I am using Julia on macOS with M1, but I am using the intel compiler version of Julia. I don’t know how to debug this problem any further. If you need any more information, let me know. I think I couldn’t reproduce it on my Linux machine, but can’t check at the moment.