[NTG-context] font features in XeTeX

Robert Zydenbos context at zydenbos.net
Mon Jul 6 12:15:11 CEST 2015

Hans Hagen wrote:

> On 7/6/2015 9:13 AM, Robert Zydenbos wrote:
>> Dear ConTeXt folk,
>> Is there any simple way to pass font features as a parameter to
>> XeConTeXt? i am thinking of things like what in LaTeX would be (between
>> square brackets) "\setromanfont [AutoFakeSlant=0.5, AutoFakeBold=0.5]
>> {Doulos SIL Phon}".
>> There has to be some way to do this, but I seem unable to find it in the
>> documentatioin I have.
> you can just append the directives to the font names (see type -xtx.mkii
> for examples). I don't know if AutoFakeBold is some built in feature. Is
> there a reason why you can't use mkiv with luatex?

I would like to, but I need to use TrueType fonts for Indian scripts in
my work that are supported in XeTeX but not (yet) in LuaTeX.

As an experiment, I tried to use the so-called 'long s' in a Fraktur
font, which comes out well in XeTeX with LaTeX, but I must be doing
something wrong in ConTeXt.



% The 'StylisitcSet 11' in the font UnifrakturMaguntia should contain
the so-called 'long s'.
% Somehow it doesn't work.


\definetypeface [hauptfont] [rm] [Xserif] [Charis SIL]
\definetypeface [schoenfont] [rm] [Xserif] [UnifrakturMaguntia]
[default] [features={StylisticSet=11}]

\switchtobodyfont [hauptfont]
Dies ist mit Features, denke ich.

{\switchtobodyfont [schoenfont] Und jetzt schreiben wir etwas in
Fraktur, das ist ja schöner.}


More information about the ntg-context mailing list