I am trying to use the second answer provided in this post, which involves installing a new font. I use TeX Live (2017 release) under MacOS. I have installed the font and left the LaTeX code untouched so far, exactly as in the answer linked above. Note that the code is intended to be ran using XeLaTeX. However I get the following error message:
LaTeX Font Warning: Font shape `U/zorna/m/n' undefined
(Font) using `U/cmr/m/n' instead on input line 6.
However, when I run tex testfont
in the terminal and then asks for the table, it outputs a DVI with the correct symbols, confirming that the installation of the font has been successful. Any idea what could have gone wrong?
The following MWE gives the same error message:
\documentclass{scrartcl}
\usepackage{zorna}
\begin{document}
\zorna{a}
\end{document}
with the additional zorna.sty
file placed in the same folder:
%Filename: zorna.sty
%Created by: TTF2TEX.perl, Sam 5 jui 2010 22:40:14 CEST
\NeedsTeXFormat{LaTeX2e}%}
\ProvidesPackage{zorna}%
%
\newcommand*{\zorna}[1]{{%
\fontencoding{U}\fontfamily{zorna}\selectfont #1}}
\endinput
/Library/Fonts
and then usefontspec
to load it, if you're using XeLaTeX anyway. This would be much simpler.