Re: [XeTeX] If font under fontspec

2010-09-21 Thread Michiel Kamermans
On 9/21/2010 7:28 AM, Gareth Hughes wrote: The Syriac font Estrangelo Edessa leaves noticeable white space before the letter ܓ when it is preceded by a non-joining letter. It seems this is a carry over from old metal type. Some people see it as a feature rather than a bug, but I wanted to provi

Re: [XeTeX] If font under fontspec

2010-09-21 Thread Gareth Hughes
Michiel Kamermans wrote: > Purely from a production point of view: if you have a document for which > it is important the right fonts are available, making sure the fonts are > available to whomever needs to compile it might deserve consideration > too. So that rather than trying to "fix" the sourc

Re: [XeTeX] If font under fontspec

2010-09-21 Thread Michiel Kamermans
Thanks for this, Will. This is exactly the kind of thing I wanted. I could use it to create a usable command that will 'fix' all subsequent instances of the font. If it's designed as a command for an end user, then the user can specify the exact set options. I think that this might be easier th

Re: [XeTeX] If font under fontspec

2010-09-21 Thread Gareth Hughes
Will Robertson wrote: > It sort of depends how you want to write the code for the test. Here's a > proof of concept that might do what you need: > > \documentclass{article} > \usepackage{fontspec} > > \makeatletter > \newcommand\IsFont[4][]{% > \begingroup >\let\curr...@family\f@family >

Re: [XeTeX] If font under fontspec

2010-09-21 Thread Khaled Hosny
On Tue, Sep 21, 2010 at 12:28:08PM +0930, Will Robertson wrote: > On 2010-09-21 09:39:51 +0930, Gareth Hughes > said: > > >Peter Dyballa wrote: > >> > >>Am 20.09.2010 um 20:44 schrieb Gareth Hughes: > >> > >>>I'm asking for a more useful implementation that checks whether a > >>>certain font is i

Re: [XeTeX] If font under fontspec

2010-09-20 Thread Will Robertson
On 2010-09-21 09:39:51 +0930, Gareth Hughes said: Peter Dyballa wrote: Am 20.09.2010 um 20:44 schrieb Gareth Hughes: I'm asking for a more useful implementation that checks whether a certain font is in use now Wouldn't it be sufficient to check what \{rm,sf,tt}default are set to? Perh

Re: [XeTeX] If font under fontspec

2010-09-20 Thread Gareth Hughes
Peter Dyballa wrote: > > Am 20.09.2010 um 20:44 schrieb Gareth Hughes: > >> I'm asking for a more useful implementation that checks whether a >> certain font is in use now > > > Wouldn't it be sufficient to check what \{rm,sf,tt}default are set to? Perhaps, but a more general, fontspec solutio

Re: [XeTeX] If font under fontspec

2010-09-20 Thread Peter Dyballa
Am 20.09.2010 um 20:44 schrieb Gareth Hughes: I'm asking for a more useful implementation that checks whether a certain font is in use now Wouldn't it be sufficient to check what \{rm,sf,tt}default are set to? -- Greetings Pete When in doubt, use brute force.

Re: [XeTeX] If font under fontspec

2010-09-20 Thread Gareth Hughes
Alan Munn wrote: > On Sep 20, 2010, at 1:30 PM, Gareth Hughes wrote: > >> Dear friends, >> >> What is the best way to write a code that will check if a certain named >> font, or group of fonts, is being used and implement some code if it is >> the case? I mainly want to use this to make a few twea

Re: [XeTeX] If font under fontspec

2010-09-20 Thread Alan Munn
On Sep 20, 2010, at 1:30 PM, Gareth Hughes wrote: Dear friends, What is the best way to write a code that will check if a certain named font, or group of fonts, is being used and implement some code if it is the case? I mainly want to use this to make a few tweaks to proprietary fonts, m

[XeTeX] If font under fontspec

2010-09-20 Thread Gareth Hughes
Dear friends, What is the best way to write a code that will check if a certain named font, or group of fonts, is being used and implement some code if it is the case? I mainly want to use this to make a few tweaks to proprietary fonts, mostly kerning. Thanks, Gareth. -