ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font features in XeTeX
@ 2015-07-06  7:13 Robert Zydenbos
  2015-07-06  8:05 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Zydenbos @ 2015-07-06  7:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

RZ

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font features in XeTeX
  2015-07-06  7:13 font features in XeTeX Robert Zydenbos
@ 2015-07-06  8:05 ` Hans Hagen
  2015-07-06 10:15   ` Robert Zydenbos
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2015-07-06  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font features in XeTeX
  2015-07-06  8:05 ` Hans Hagen
@ 2015-07-06 10:15   ` Robert Zydenbos
  2015-07-06 13:56     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Zydenbos @ 2015-07-06 10:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Robert

Example:

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

\starttext

\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.}

\stoptext
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font features in XeTeX
  2015-07-06 10:15   ` Robert Zydenbos
@ 2015-07-06 13:56     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2015-07-06 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1405 bytes --]


> Robert Zydenbos <mailto:context@zydenbos.net>
> 6. Juli 2015 12:15
>
> 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.
>
> Robert
>
> Example:
>
> % The 'StylisitcSet 11' in the font UnifrakturMaguntia should contain
> the so-called 'long s'.
> % Somehow it doesn't work.
>
> \starttext
>
> \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.}
>
> \stoptext
Below is a MkIV example where I enabled the Stylistic Set 11 for the 
Fraktur font.

\definefontfeature [longs] [ss11=yes]

\definefontfamily [hauptfont]  [rm] [Charis SIL]
\definefontfamily [schoenfont] [rm] [Unifraktur Maguntia] 
[features={default,longs}]

\setupbodyfont[hauptfont]

\starttext

Dies ist mit Features, denke ich.

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

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2470 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-06 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06  7:13 font features in XeTeX Robert Zydenbos
2015-07-06  8:05 ` Hans Hagen
2015-07-06 10:15   ` Robert Zydenbos
2015-07-06 13:56     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).