Does CairoMakie support mixed Latin and foreign characters?

Hello,

I’m currently writing my PhD thesis (in Chinese).
According to what they said, labels in figures should be in “Chinese in SimSun + English in Times New Roman” style.
But I currently can only make it to be “Both Chinese and English in SimSun”:

using CairoMakie
Makie.update_theme!(
    fonts = (
        regular = "SimSun",
        bold = "SimSun",
        italic = "Times New Roman",
        bold_italic = "Times New Roman Bold"
    )
);

f = Figure(size=(200,280), figure_padding = 0.9);
axw = Axis(f[1, 1], ylabel="风电功率/百MW", xticksvisible=false, xticklabelsvisible=false, xgridvisible = false,ygridvisible = false)
axe = Axis(f[2, 1], ylabel="储电量/百MWh", xlabel="时段", xticks=-1:1:3, xgridvisible = false,ygridvisible = false)
f

So as you can see, the “MW” was printed in SimSun style. I wonder if there’s a way to print it in Times New Roman? Thank you.

Hi!

Makie supports rich text. Something like ylabel=rich("风电功率/百", rich("MW", font="Times New Roman")) should do the trick.