# How to change axis tick label font to Arial when using pgfplots to draw a figure?

I can change the main font in the preamble using

\usepackage{fontspec}
\setmainfont{Arial}


but it only works for the legend but not axis tick label, I've installed Arial font. I don't want to use

\usepackage{helvet}
\usepackage{sansmath}


for they are not the same as Arial. Thank you for your help!

• This question might be helpful: tex.stackexchange.com/q/33325 – nidhin Aug 11 at 3:21
• If you can load unicode-math, it should be able to set your \mathrm font to Arial. (Should happen automatically if you set the main font, or use \setmathrm.) You can also \setsansfont and use \mathsfup. – Davislor Aug 11 at 4:03
• @nidhin, I tried that, but the {helvet} package derived font was not the totally same as Arial – Hu jinrong Aug 11 at 6:31
• @Davislor, thank you, but unicode-math don't work. – Hu jinrong Aug 11 at 9:40