ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Access stylistic sets in lucidaot
Date: Thu, 14 Jul 2016 19:52:32 +0200	[thread overview]
Message-ID: <dcdf34fb-7b58-7aed-d3a3-e46b8e6bf1b7@wxs.nl> (raw)
In-Reply-To: <578777CF.2070104@gmail.com>

On 7/14/2016 1:30 PM, Henri Menke wrote:
> Dear list,
>
> I have been using the Lucida fonts for long time with LaTeX, either the
> Type 1 version through the `lucimatx` package or the OpenType variants
> with `unicode-math`.  In `unicode-math` there is a straightforward way
> to select stylistic sets, e.g. alternative calligraphic glyphs.
>
> By default the `lucidaot` typescript switches off the alternative math
> italics, but I found a way to reenable them (basically just undoing what
> the typescript does).
>
>> \setupbodyfont[lucidaot]
>> % get alternative math italics
>> \setupmathrendering[lucidaot][it=]
>> \starttext
>> $\mathcal{C} = f(x)$
>> \stoptext
>
> I only found this by chance; \setupmathrendering is not documented.  Is
> there a more intuitive way to select the alternative math italics?
> Also, is there an easy way to access all the other features defined in
> `lucida-opentype-math.lfg`?  This is the list:
>
>> alternates = {
>>     italic       = { feature = 'ss01', value = 1, comment = "Mathematical Alternative Lowercase Italic" },
>>     arrow        = { feature = 'ss02', value = 1, comment = "Mathematical Alternative Smaller Arrows" },
>>     operator     = { feature = 'ss03', value = 1, comment = "Mathematical Alternative Smaller Operators" },
>>     calligraphic = { feature = 'ss04', value = 1, comment = "Mathematical Alternative Calligraphic Characters" },
>>     zero         = { feature = 'ss05', value = 1, comment = "Mathematical Alternative Zero" },
>>     partial      = { feature = 'ss20', value = 1, comment = "Mathematical Alternative Upright Partial Differential" },
>> },

I extended the mechanism a bit so in the next beta you can do 
combinations and a global setup:

\setupbodyfont[lucidaot]

\starttext

$x
    ^{i \leftarrow 0 = ∅}
    _{\setmathfontalternate{arrow}
      \setmathfontalternate{dotless}
      \setmathfontalternate{zero}
      i \leftarrow 0 = ∅}
$

$x
    ^{i \leftarrow 0 = ∅}
    _{\setmathfontalternate{arrow,dotless,zero}
      i \leftarrow 0 = ∅}
$

\setupmathematics[stylealternative={arrow,dotless,zero}]

$x
    ^{i \leftarrow 0 = ∅}
    _{i \leftarrow 0 = ∅}
$

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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
___________________________________________________________________________________

      reply	other threads:[~2016-07-14 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 11:30 Henri Menke
2016-07-14 17:52 ` Hans Hagen [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=dcdf34fb-7b58-7aed-d3a3-e46b8e6bf1b7@wxs.nl \
    --to=pragma@wxs.nl \
    --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).