ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font features in XeTeX
Date: Mon, 06 Jul 2015 15:56:03 +0200	[thread overview]
Message-ID: <559A88F3.2000301@gmail.com> (raw)
In-Reply-To: <559A552F.4090704@zydenbos.net>


[-- 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
___________________________________________________________________________________

      reply	other threads:[~2015-07-06 13:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  7:13 Robert Zydenbos
2015-07-06  8:05 ` Hans Hagen
2015-07-06 10:15   ` Robert Zydenbos
2015-07-06 13:56     ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559A88F3.2000301@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).