# Problem getting MyriadPro package to work

I just managed to install MinionPro and MyriadPro by following the FontPro installation manual. Everything seems fine, only the pdf output is not in MyriadPro with the following MWE.

\documentclass{article}

\begin{document}
This is a test document for the MyriadPro font. Make sure that all the symbols below compiled correctly.
\\
\\
$\beta = (X'X)^{-1} X'Y$
\\
\\
$Y = X\beta + \epsilon$

\end{document}


In the log is no error except

Underfull \hbox (badness 10000) in paragraph


It also appears as if it really uses the MyriadPro font because of those lines

Using the configuration file MyriadPro.cfg
Package textcomp Info: Setting MyriadPro-LF sub-encoding to TS1/1 on input    line 757.


-
Welcome to TeX.sx! +1 for Myriad Pro – jjdb Apr 17 '13 at 21:02
You should also add \renewcommand{\familydefault}{\sfdefault}, as MyriadPro is defined by the package as the default sans serif font. – egreg Apr 17 '13 at 21:12

You can use MyriadPro in a LaTeX document by adding the command \usepackage{MyriadPro} to the preamble. This will change both the sans serif text font and the math font to MyriadPro. If you want to use MyriadPro as your main font, add \renewcommand{\familydefault}{\sfdefault} to your preamble.
So add \renewcommand{\familydefault}{\sfdefault} to your example right after you loaded \usepackage{MyriadPro} and the sans serif text and the main text will be set in MyriadPro.
Just as a comment for future readers: starting with version 0.5 of MyriadPro, the onlytext option is set by default, i.e. the math fonts are not changed by default. – sebschub Apr 29 '13 at 16:08