ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Access stylistic sets in lucidaot
@ 2016-07-14 11:30 Henri Menke
  2016-07-14 17:52 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2016-07-14 11:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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" },
> },

Cheers,
Henri
___________________________________________________________________________________
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] 2+ messages in thread

* Re: Access stylistic sets in lucidaot
  2016-07-14 11:30 Access stylistic sets in lucidaot Henri Menke
@ 2016-07-14 17:52 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2016-07-14 17:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

end of thread, other threads:[~2016-07-14 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 11:30 Access stylistic sets in lucidaot Henri Menke
2016-07-14 17:52 ` Hans Hagen

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).