Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to use specific fonts in my LaTeX file. But fontspec can't find my desired fonts. I use

family file | grep -i helvetica

to know the names to use in XeTeX using fontspec

/usr/local/share/fonts/HelveticaNeueLTPro-UltLtIt.otf: Helvetica Neue LT Pro,HelveticaNeueLT Pro 25 UltLt
/usr/local/share/fonts/HelveticaNeueLTPro-BdCn.otf: Helvetica Neue LT Pro,HelveticaNeueLT Pro 57 Cn
/usr/local/share/fonts/HelveticaNeueLTPro-Lt.otf: Helvetica Neue LT Pro,HelveticaNeueLT Pro 45 Lt

My .cls part that needs specific fonts is


\setmathfont{Latin Modern Math}

\newfontfamily\bodyfont[]{HelveticaNeueLT Pro 45 Lt}
\newfontfamily\thinfont[]{HelveticaNeueLT Pro 25 UltLt}
\newfontfamily\headingfont[]{HelveticaNeueLT Pro 57 Cn}

\setmainfont[Mapping=tex-text, Color=textcolor]{HelveticaNeueLT Pro 45 Lt}

But fontspec gives errors all the time!

share|improve this question
Welcome to TeX.SX! We can't help you unless you tell us specifically what errors you're getting. –  ChrisS Aug 19 '13 at 23:37
And perhaps a minimal working example (MWE). Note that, if these lines are indeed the problem, you can copy them into such a minimal file with no issues. –  Sean Allred Aug 19 '13 at 23:48
The error is "font-not-found". The font "HelveticaNeueLT Pro 45 Lt" cannot be found. –  GSchimiti Aug 19 '13 at 23:53
Did you tried the file name without extension? E.g. HelveticaNeueLTPro-Lt. –  Tobi Aug 20 '13 at 0:26
Wow! Works perfect.. Problem solved! Thanks! –  GSchimiti Aug 20 '13 at 0:41
show 2 more comments

2 Answers

You need to use the PostScript name, usually it's the same as the filename sans extension, but not always --- use a font information utility to determine what it is:

\setmainfont[Mapping=tex-text, Color=textcolor]{HelveticaNeueLTStd-Lt}
Main. \bodyfont (bodyfont is same as main)\par
\thinfont Thin.\par
\headingfont Headingfont is condensed.
share|improve this answer
Maybe interesting: Why should the minimal class be avoided? ;-) –  Tobi Aug 20 '13 at 14:20
add comment

You can use the file name instead of the font name, e.g. for Helvetica Neue LT Pro-Lt 45 Lt.

\setmainfont[Mapping=tex-text, Color=textcolor]{HelveticaNeueLTPro-Lt}
share|improve this answer
With Ligatures=TeX instead of Mapping=tex-text, the call is compatible with LuaLaTeX. –  egreg Aug 20 '13 at 9:34
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.