[XeTeX] Invalid fontname

Mike Maxwell maxwell at umiacs.umd.edu
Sun Sep 5 05:55:02 CEST 2010


I'm trying out some fonts for the Dhivehi language, which has a unique 
script.  The fonts were created by the Maldives Ministry of 
Communication, Science, and Technology.  However, that website has been 
down for at least a week, so I got them from
    http://sites.google.com/site/iheckersite/uploads/dhivehi-fonts
The fonts in question are the 'Mv Elaaf Normal', the 'Mv GroupX Avas', 
and the 'Mv Lady Luck'.  I can't get any of them to work with XeLaTeX, 
which complains that there is an "Invalid fontname."

The code which calls the font in question is the ff:
---------------
\documentclass[12pt,letterpaper]{report}
\usepackage{fontspec}
\newfontinstance\dhivehifontA{Mv Elaaf Normal}
\newcommand{\dhiA}[1]{{\newfontinstance\dhivehifontA #1}}
\begin{document}
\dhiA{ޓީވީއެމް އާއި ދިވެހިރާއްޖޭގެ އަޑުގެ ނަން ބަދަލުކޮށްފިއެވެ.}
\end{document}
---------------

(If those characters don't come out in your email, it's because you 
don't have a font for Dhivehi installed!)

I'll excerpt what I think are the relevant parts of the log file here, 
since it's rather long:
---------------
Package fontspec Info: Defining font family for 'Mv Elaaf Normal' with 
options [] on input line 10.
Package fontspec Info: Could not resolve font Mv Elaaf Normal/B (it 
might not exist) on input line 10.
Package fontspec Info: Could not resolve font Mv Elaaf Normal/I (it 
might not exist) on input line 10.
Package fontspec Info: Could not resolve font Mv Elaaf Normal/BI (it 
might not exist) on input line 10.
...
! Font \zf at basefont=Þ“ at 12.0pt not loadable: Metric (TFM) file or 
installed font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
                                                   \unless \ifzf at icu 
\zf at set@...
l.28 ...‚Þ¦Þ‚Þ° ބަދަލުކޮށްފިއެވެ.}
---------------
I believe it's correct about the non-existence of the Bold and Italic 
versions of font.

There was a thread a year ago, see
     http://www.tug.org/pipermail/xetex/2009-March/012496.html
but afaict, the problem there is different.

fc-list finds the font ok.  I have also tried adding
------------
\fontspec[ ExternalLocation=/groups/opt/share/fonts/, \
UprightFont=MvElaafNormal.otf.ttf ]{Mv Elaaf Normal}
------------
before the \newfontinstance command, but I get the same error. Leaving 
out the name-internal spaces in the \newfontinstance command also 
results in the same error.

'otfinfo' reports:
------------
Family:              Mv Elaaf Normal
Subfamily:           Normal
Full name:           Mv Elaaf Normal
PostScript name:     MvElaafNormal
Version:             1.0
Unique ID:           Sehga Elaaf Regular
Manufacturer:        M.A.Gadir
Goalhithereyge
Male'
Tel 31 33 99
Copyright:           M.A.Gadir for Sehga Soft. Tel 31 33 99
------------

Am I doing s.t. wrong, or is there a problem with these fonts?
-- 
	Mike Maxwell
	maxwell at umiacs.umd.edu
         "A library is the best possible imitation, by human beings,
         of a divine mind, where the whole universe is viewed and
         understood at the same time... we have invented libraries
         because we know that we do not have divine powers, but we
         try to do our best to imitate them." --Umberto Eco


More information about the XeTeX mailing list