[XeTeX] Invalid fontname

Peter Dyballa Peter_Dyballa at Web.DE
Sun Sep 5 11:07:14 CEST 2010


Am 05.09.2010 um 05:55 schrieb Mike Maxwell:

> I'm trying out some fonts for the Dhivehi language, which has a  
> unique script.

Thaana, U+0780-U+07BF, can also be found in Code2000, FreeSerif, TITUS  
Cyberbit.

The cause is that your code is faulty:

> \newfontinstance\dhivehifontA{Mv Elaaf Normal}
                   ^^^^^^^^^^^^^
> \newcommand{\dhiA}[1]{{\newfontinstance\dhivehifontA #1}}
                                          ^^^^^^^^^^^^^

By reusing a name in this manner it's like creating an endless loop.  
This as substitute of the second line might work better:

	\DeclareRobustCommand{\dhiA}[1]{{\dhivehifontA #1}}

Presumingly it was late and you did not realise that you were copying  
and pasting too much text...

--
Greetings

   Pete

If men could get pregnant, abortion would be a sacrament.
				– Florynce Kennedy




More information about the XeTeX mailing list