[NTG-context] faked fonts not working

Hans Hagen pragma at wxs.nl
Mon Jun 24 20:09:04 CEST 2013


On 6/24/2013 7:58 PM, Pablo Rodríguez wrote:
> On 22/06/13 16:03, Pablo Rodríguez wrote:
>> Dear list,
>>
>> as far as I can remember, this used to work in the past:
>>
>> \setupbodyfontenvironment[default][em=italic]
>> \usemodule[simplefonts]
>>
>> \definefontfeature[fakeitalic][default][slant=.25]
>> \definefontfeature[fakebold][default][extend=2]
>> \definefontfeature[fakebolditalic][default][slant=.25, extend=2]
>> \setmainfont[Larabiefont][italicfont={* Regular}, boldfont={*
>> Regular}, bolditalicfont={* Regular}, italicfeatures=fakeitalic,
>> boldfeatures=fakebold, bolditalicfeatures=fakebolditalic]
>
> I have experienced that one fonts work with this and others don’t.
>
> Is there no way to force these features on all fonts?

\starttext

\definefontfeature[fakeitalic][default][slant=.25]
\definefontfeature[fakebold][default][extend=1.2]
\definefontfeature[fakebolditalic][default][slant=.25, extend=1.2]

\definedfont[Serif*fakeitalic]\input tufte
\definedfont[Serif*fakebold]\input tufte
\definedfont[Serif*fakebolditalic]\input tufte

\stoptext

you'll notice that there is a (known) bug in luatex (the backend): 
depending on the order of definitions such a fake can get lost in the 
middle of a line when first applied

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list