[XeTeX] Checking if a font exists

2010-08-29 Thread Alan Munn
Is there a way to check whether a font is present in a user's system? I need to generate a document with Myriad Pro if it exists, Arial otherwise, and if neither, exit with an error. I couldn't find anything in either the fontspec and xetex documentation. Thanks Alan -- Alan Munn am...@gm

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Fr. Michael Gilmary
Alan Munn wrote: Is there a way to check whether a font is present in a user's system? I need to generate a document with Myriad Pro if it exists, Arial otherwise, and if neither, exit with an error. Well, at the risk of impertinence (since I can't directly address your question), if you

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Alan Munn
On Aug 29, 2010, at 12:25 PM, Fr. Michael Gilmary wrote: Alan Munn wrote: Is there a way to check whether a font is present in a user's system? I need to generate a document with Myriad Pro if it exists, Arial otherwise, and if neither, exit with an error. Well, at the risk of imperti

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Michiel Kamermans
Hi Alan, Is there a way to check whether a font is present in a user's system? I need to generate a document with Myriad Pro if it exists, Arial otherwise, and if neither, exit with an error. Myriad Pro is nothing like Arial, though... but just to make your life worse: thought about version

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Alan Munn
On Aug 29, 2010, at 12:24 PM, Michiel Kamermans wrote: Hi Alan, Is there a way to check whether a font is present in a user's system? I need to generate a document with Myriad Pro if it exists, Arial otherwise, and if neither, exit with an error. Myriad Pro is nothing like Arial, though

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Barry MacKichan
Some variation of fc-list "Myriad Pro" > somefile should get you a file you can run a test on. --Barry macKichan On 8/29/2010 10:56 AM, Alan Munn wrote: > > On Aug 29, 2010, at 12:24 PM, Michiel Kamermans wrote: > >> Hi Alan, >> >>> Is there a way to check whether a font is present in a user'

[XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread Alan Munn
Hi, a while ago, Ulrike posted an nice way to allow legacy tipa code to be used with xelatex. Unfortunately I've encountered a problem: it doesn't work inside math mode. Is there a way to fix this? Thanks Alan % !TEX TS-program = XeLaTeX \documentclass{article} \usepackage{amsmath} \use

Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread George N. White III
On Sun, Aug 29, 2010 at 2:45 PM, Alan Munn wrote: > Hi, a while ago, Ulrike posted an nice way to allow legacy tipa code to be > used with xelatex.  Unfortunately I've encountered a problem: it doesn't > work inside math mode.  Is there a way to fix this?  Thanks I use \mbox{} for text in maths m

Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread Alan Munn
On Aug 29, 2010, at 2:18 PM, George N. White III wrote: On Sun, Aug 29, 2010 at 2:45 PM, Alan Munn wrote: Hi, a while ago, Ulrike posted an nice way to allow legacy tipa code to be used with xelatex. Unfortunately I've encountered a problem: it doesn't work inside math mode. Is there a

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Peter Dyballa
Am 29.08.2010 um 18:17 schrieb Alan Munn: Is there a way to check whether a font is present in a user's system? Font Book? Locate? Find? Lsbom? Ftxinstalledfonts? Fc-list or fc-match? Spottlight? -- Greetings Pete There is no worse tyranny than to force a man to pay for what he do

Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread Herbert Schulz
On Aug 29, 2010, at 3:40 PM, Ross Moore wrote: > > Attached is the version of Xunicode.sty that I'm using. > Please compare it with what you have. > > > > > Howdy, CTAN still has 0.91 released 2008 and that's what is in TL2010 pretest. Is this purely experimental or are you going to rel

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Grzegorz Murzynowski
W dniu 29.08.2010 19:18, Barry MacKichan pisze: Some variation of fc-list "Myriad Pro"> somefile should get you a file you can run a test on. And when the 18th output is on (writing to shell), you can put \immediate\write 18{fc-list "Myriad Pro" > fontcheck.

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Philip Taylor (Webmaster, Ret'd)
Grzegorz Murzynowski wrote: And when the 18th output is on (writing to shell), you can put \immediate\write 18{fc-list "Myriad Pro" > fontcheck.tex} \newread\fontcheck \immediate\openin\fontcheck="fontcheck.tex" \ifeof \fontcheck … Is the "\immediate" necessary before the \openin at line 3

Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread Ross Moore
Hi Herb, On 30/08/2010, at 6:57 AM, Herbert Schulz wrote: > > On Aug 29, 2010, at 3:40 PM, Ross Moore wrote: > >> >> Attached is the version of Xunicode.sty that I'm using. >> Please compare it with what you have. >> >> >> >> >> > > Howdy, > > CTAN still has 0.91 released 2008 and that

Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-29 Thread Herbert Schulz
On Aug 29, 2010, at 4:59 PM, Ross Moore wrote: > Hi Herb, > > On 30/08/2010, at 6:57 AM, Herbert Schulz wrote: > >> >> On Aug 29, 2010, at 3:40 PM, Ross Moore wrote: >> >>> >>> Attached is the version of Xunicode.sty that I'm using. >>> Please compare it with what you have. >>> >>> >>> >

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Khaled Hosny
On Sun, Aug 29, 2010 at 12:17:38PM -0400, Alan Munn wrote: > Is there a way to check whether a font is present in a user's > system? I need to generate a document with Myriad Pro if it exists, > Arial otherwise, and if neither, exit with an error. > > I couldn't find anything in either the fontsp

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Barry MacKichan
Since xetex uses fontcache, a extra benefit for Windows users is that they now have a version. By default it looks at the Windows font directory among others. --Barry On 8/29/2010 3:39 PM, Grzegorz Murzynowski wrote: > W dniu 29.08.2010 19:18, Barry MacKichan pisze: >> Some variation of >> fc-

Re: [XeTeX] Checking if a font exists

2010-08-29 Thread Wilfred van Rooijen
Hi, I am not 100% sure, but "fc-list" and friends might not always list the fonts even if they are on the user's system. For example, on my gentoo linux desktop, fonts for Adobe Acrobat are installed in a specific directory and are not included in the system-wide fonts by default. In fact, I ha