# Using specific font for the equation in XeLaTex

I want to use a specific font for a specific formula in XeLaTeX. Usually, the math font can be set up using mathspec package.

\usepackage{mathspec}
\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}]{Humor Sans}


I can also use a specific font for a part of the text using \newfontfamily command:

\newfontfamily\humor{Humor Sans}
{\humor text }


How can I use a specific font for a single equation:

%Want Humor Sans only here!!
$$C = A + B$$

-
Welcome to TeX.SX! –  barbara beeton Oct 4 '13 at 12:30