ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using stylistic sets in math
@ 2010-07-15 19:24 Khaled Hosny
  2010-07-15 19:45 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Khaled Hosny @ 2010-07-15 19:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

In XITS I have stylistic sets (ss01-07) for accessing additional
alphabets not bresent in Unicode, or variants of exising ones.

For example, ss01 maps the script alphabets to an alternate calligraphic
one, so I did:

\starttext
\setupbodyfont[xits]
\ctxlua{fonts.otf.features.register_base_substitution('ss01')}
\definefontfeature[ss01][mode=base,script=math,ss01=yes]
$\addff{ss01}\cal ABCDEFG$
\stoptext

(I was not expecting \addff to work in math, but anyway).

This works, however, but I don't want to set the feature globally:

\starttext
\ctxlua{fonts.otf.features.register_base_substitution('ss01')}
\definefontfeature[math-text][mode=base,script=math,ss01=yes]
\setupbodyfont[xits]
$\cal ABCDEF$
\stoptext

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2010-07-17  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-15 19:24 Using stylistic sets in math Khaled Hosny
2010-07-15 19:45 ` Hans Hagen
2010-07-17  3:49   ` Khaled Hosny
2010-07-17  5:43     ` Taco Hoekwater
2010-07-17  5:56       ` Khaled Hosny
2010-07-17  6:07         ` Taco Hoekwater

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