Re: [XeTeX] Test for font presence

2011-05-10 Thread Ron Aaron
Was that a sarcastic answer? How would one go about accomplishing that? Teach it to use OS font services instead of TeX mechanisms! -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex

Re: [XeTeX] Test for font presence

2011-05-10 Thread Peter Dyballa
Am 10.05.2011 um 10:53 schrieb Ron Aaron: Was that a sarcastic answer? Not really. It's more of an inability to imagine something else, which is not complicated. How would one go about accomplishing that? Writing code that fits into xdvipdfmx and augments it. -- Greetings Pete

Re: [XeTeX] Test for font presence

2011-05-10 Thread Ron Aaron
So the correct answer would have been: I don't know of a way to do that without changing xdvipdfmx. On 05/10/2011 12:12 PM, Peter Dyballa wrote: Not really. It's more of an inability to imagine something else, which is not complicated. How would one go about accomplishing that? Writing

Re: [XeTeX] Test for font presence

2011-05-10 Thread Peter Dyballa
Am 10.05.2011 um 14:09 schrieb Ron Aaron: So the correct answer would have been: I don't know of a way to do that without changing xdvipdfmx. No. (Could you be so kind to read my answers again? Maybe my English is a bit too bad to express in a comprehensible way what I thought I could

Re: [XeTeX] Test for font presence

2011-05-10 Thread Mojca Miklavec
On Mon, May 9, 2011 at 18:28, Ron Aaron wrote: Hi all - Is there a way to test -- from within a XeTeX document -- for the presence of a font, without causing the run to fail if the font doesn't exist? There is a parameter \suppressfontnotfounderror that you probably want to set to 1 and

[XeTeX] Test for font presence

2011-05-09 Thread Ron Aaron
Hi all - Is there a way to test -- from within a XeTeX document -- for the presence of a font, without causing the run to fail if the font doesn't exist? I would like to be able to do something like: \fontexists{Libertine} \iffontexists ... \else ... \fi Thanks, Ron

Re: [XeTeX] Test for font presence

2011-05-09 Thread Ron Aaron
Came up with the following: \newif\iffontexists \def\fontexists#1{ \fontexistsfalse \batchmode \font\tstfnt=#1 \errorstopmode \ifnum\strcmp{\fontname\tstfnt}{#1}=0 \fontexiststrue \fi } It works, but is there an easier way?

Re: [XeTeX] Test for font presence

2011-05-09 Thread Peter Dyballa
Am 09.05.2011 um 21:15 schrieb Ron Aaron: It works, but is there an easier way? See the list archive near the end of last august! -- Greetings Pete Clovis' Consideration of an Atmospheric Anomaly: The perversity of nature is nowhere better demonstrated than by the fact that,