[Tex/LaTex] Missing font for friggeri cv (despite installation)

errorsfontsfontspecfriggeri-cvwindows

For my cv I'm using the friggeri-cv template, which was already was reason for serveral threads here.

The template is heavily build on HelveticaNeue, which is installed on my system (Win7/TeXnicCenter) and can be used in other programs like Open Office Writer and Microsoft Word.

When compiling with the original fonts I get following errors with an added suggestion to' ask someone for help!':

! fontspec error: "font-not-found"
! The font "Helvetica Neue LT Std 37" cannot be found.
! See the fontspec documentation for further information.

Also tried the approach posted by Nils L of using standard fonts for testing purposes, which work fine. But as Helvetica Neue is installed on my system i would prefer to use it.

My best guess would be that the spelling needed for latex is somehow different as the one used in win7.

Has anybody experienced same issues and was able to solve it ?

I'm aware of Problem while compiling friggeri CV template with: ' fontspec error: "font-not-found"' and was going to comment my issue there but apparently I'm lacking reputation.

Best Answer

When using system font names, you must use the form found in the "Font name" field in Windows Font Viewer when you open an individual font. On my Windows 7 system, "Helvetica Neue LT Std 37" is the name of a Font Family which appears in Control Panel > All Items > Fonts, but it is not the name of an individual font. The fonts in this family are named "HelveticaNeueLT Std Thin Cn". If you use this name instead, it will work.

This has to do with how fontspec loads system fonts by name. You can also specify the font's filename. Sometimes this can be more convenient. So either of the \setmainfont lines in my short example code below will work:

\documentclass{article}
\usepackage{fontspec}
%\setmainfont{HelveticaNeueLT Std Thin Cn} % by name, LuaLaTeX
%\setmainfont{HelveticaNeueLTStd-ThCn}     % by name, XeLaTeX
\setmainfont{HelveticaNeueLTStd-ThCn.otf}  % by filename, either engine

\begin{document}
Test.
\end{document}

The selection by name for LuaLaTeX uses luaotfload for system fonts. Spaces and casing are insignificant with luaotfload. If you're using XeLaTeX, a different method is used for loading fonts, and a slightly different name is required (this time found using Properties > Details > Title). Selection by filename works with either engine.