Wolfgang Schuster wrote:
> 2007/12/6, Mojca Miklavec <[EMAIL PROTECTED]>:
>> On Dec 6, 2007 5:09 PM, Steffen Wolfrum wrote:
>>> Am 06.12.2007 um 12:32 schrieb Mojca Miklavec:
>>>
>>>> The general approach would be something like:
>>>>    \definefontfeature[mine][smcp=yes]
>>>>    \definefontsynonym[a][name:Warnock Pro][features=mine]
>>>>    \showfont[a]
>>>> (grep the sources for definefontfeature)
>>>
>>> hmm ... the only hit is in /base/font-ini.mkii (and font-ini.tex)
>>>
>>> \def\mkdefinefontfeature#1% #2
>>>    {\setvalue{\??fa#1}} % {#2}
>> \definefontfeature
>>   [default]
>>   [liga=yes,kern=yes,tlig=yes,trep=yes] % texligatures=yes,texquotes=yes
>>
>> \definefontfeature
>>   [smallcaps]
>>   [liga=yes,kern=yes,tlig=yes,trep=yes,smcp=yes] %
>> texligatures=yes,texquotes=yes
> 
> I would prefer something like
> 
> \definefontfeature
>   [smallcaps]
>   [default] % inherit settings from default
>   [smcp=yes] % add smcp to the feature list

something like that ...

keep in mind that you don't need to define a font then,

{\setfontfeature{smallcaps}Some Text}

will automatically give you that featureset so in practice we can do 
with only a few real font definitions; mkiv keeps track of such dunamic 
features and efficiently caches data;

we sped up luatex + mkiv some 30% and when using dynamic features with 
huge fonts (zapfino, arab, chinese) we can even gain more

(our sample mk.tex went from 29 seconds down to some 20 seconds and 
dynamic arab gives another 2 a 3 seconds; a fast console another 2+ 
seconds but that's another story; just in case you wondered why it took 
a while for this beta to surface)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to