I am very inexperienced with LaTeX. I have a tex file that has worked for a long time, then stopped without any changes to the file.
We purchased NeueHaasGrotDisp font. I have the fonts in OTF format.
I am getting the following error:
(C:\myPath\Program\Binaries\miktex\tex\xelatex\fontspec\fontspec.cfg))Running miktex-makemf.exe...
miktex-makemf: The NeueHaasGrotDisp-55Roman source file could not be found.
Running hbf2gf.exe...
hbf2gf (CJK ver. 4.8.3)
Couldn't find `NeueHaasGrotDisp-55Rom.cfg'
miktex-maketfm: No creation rule for font NeueHaasGrotDisp-55Roman.
! Font \zf@basefont=NeueHaasGrotDisp-55Roman at 10.0pt not loadable: Metric(TFM) file or installed font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@...
l.151 {NeueHaasGrotDisp}
My code:
...
\usepackage{fontspec}
...
%Regular Font
\newfontfamily\nhg [
Path = {/Program Files (x86)/program/fonts/},
BoldFont = *-75Bold,
UprightFont = *-55Roman,
ItalicFont = *-36ThinItalic,
Extension = .otf
]
{NeueHaasGrotDisp}
%Light Font
\newfontfamily\nhgl [
Path = {/Program Files (x86)/program/fonts/},
BoldFont = *-75Bold,
UprightFont = *-45Light,
Extension = .otf
]
{NeueHaasGrotDisp}
At /Program Files (x86)/program/fonts/
I have the following files:
- NeueHaasGrotDisp-36ThinItalic.otf
- NeueHaasGrotDisp-45Light.otf
- NeueHaasGrotDisp-55Roman.otf
- NeueHaasGrotDisp-75Bold.otf
Would this happen if our font license expired? Is this checked when the font is loaded?
Extension = .otf
or similar?.tex
file doesn't have that code anywhere. Where would I put that?\newfontfamily
.Extension = .otf
as a key to newfontfamily and I got all the same errors.Path={C:/Program Files/program/fonts/}
. Also, it looks like you're using an extremely old version offontspec
. I recommend updating to the latest version of MiKTeX if possible.