[XeTeX] "Hoefler Text" XeLaTeX interface

Jonathan Kew jonathan_kew at sil.org
Tue Oct 5 09:15:04 CEST 2004


On 5 Oct 2004, at 1:42 am, Will Robertson wrote:

> On 4 Oct 2004, at 9:41 PM, Jonathan Kew wrote:
>> On 4 Oct 2004, at 12:16 pm, Jonathan Kew wrote:
>>
>>>> At the moment I need a separate font family for literally almost 
>>>> every (if I choose to make them, which I don't) permutation of font 
>>>> feature choice. But if there was an XeTeX command I didn't know 
>>>> about that would do say:
>>>
>>> ...
>>> In principle, you could probably do it directly in TeX macros even 
>>> now--use \fontname to get the name of the current font, and then 
>>> declare a new \font with the feature setting you want added. But 
>>> that sort of string manipulation in TeX macros can get tricky, I 
>>> admit.
>>>
>>
>> As a starting point, you could try this....
>
> That's a fantastic beginning!
> Your work on this project is just unbelievable.
>
> I need to try and work out if this is enough to be able to do all of 
> the Hoefler Text switching without creating separate families - if so 
> I'll update my files as soon as I can. I've got some other fonts 
> ready, too (the more basic ones).

One thing you might want to check (I'm not sure, offhand) is whether 
repeated use of this macro, even when accessing the same feature, will 
consume some limited TeX resource, such as font numbers or whatever. It 
might be necessary to make it "cache" the \font definitions it creates, 
and re-use them when the same combination of features comes up again.

>>       }\XeTeXselectorname\testfont\fc\sc \ [\number\fc] % output ID 
>> as well as name
>
> That should be ...[\number\sc] on that last line.

Yes, of course it should; sorry, copy-and-paste slip!

JK



More information about the XeTeX mailing list