5

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
3
  • Still nobody? I updated TexLive, Texmaker as well as my MacOS distribution and the problem persists. I believe that I am doing something wrong with the installation of the font. But I can't figure out what since tex testfont says its installed!
    – Pxx
    Nov 11 '19 at 20:50
  • Why not just put the actual TrueType font in /Library/Fonts and then use fontspec to load it, if you're using XeLaTeX anyway. This would be much simpler.
    – Alan Munn
    Nov 11 '19 at 22:23
  • @AlanMunn Thanks for your answer! I tried that, without success. I put the font called "Orna4.ttf" in my Library/Fonts folder and tried to call it with \setmainfont{Orna4} and \setmainfont{Orna4.ttf}, both return the same error as in the OP unfortunately.
    – Pxx
    Nov 11 '19 at 22:34
3
+50

The following document compiles without error for me, having installed the Orna 4 font into /Library/Fonts and compiled with XeLaTeX.

\documentclass{article}
\usepackage{fontspec}
\newfontface\orna{Orna 4}
\begin{document}
\Huge
{\orna a b c d e f }
\end{document}

output of code

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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