ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Euler with fallback
@ 2013-08-10 16:36 Aditya Mahajan
  2014-02-16 16:51 ` Sanjoy Mahajan
  2014-03-03 11:50 ` Euler with fallback Sanjoy Mahajan
  0 siblings, 2 replies; 15+ messages in thread
From: Aditya Mahajan @ 2013-08-10 16:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

This is to announce that the latest beta supports creating virtual math 
fonts with fallback. The main test case is to use Euler font with missing 
characters taken from Pagella but the mechanism is general and can be used 
to replace a specific set of math glyphs from a font.

This feature is not extensively tested. As such it will be useful if 
everyone interested in math fallback mechanism could test this out and 
report any bugs or inconsistencies.

To use this feature you have to use `pagellaovereuler` as your math font. 
For example, to use Euler with DejaVu fonts, use:


\usetypescriptfile[euler]
\starttypescript[mainface]
 	\definetypeface[mainface][rm][serif][dejavu]          [default]
 	\definetypeface[mainface][ss][sans] [dejavu]          [default]
 	\definetypeface[mainface][tt][mono] [dejavu]          [default]
 	\definetypeface[mainface][mm][math] [pagellaovereuler][default]
\stoptypescript

\setupbodyfont[mainface]

\appendtoks \rm \to \everymathematics
\setupmathematics
        [lcgreek=normal, ucgreek=normal]


There is a built-in typescript `euler-with-pagella` to use 
`pagellaovereuler` as the math font and `pagella` as the text font.

If you are interested in implementing similar fallback mechanisms for 
other fonts, see type-imp-euler.mkiv and euler-math.lfg for details.

Aditya
___________________________________________________________________________________
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] 15+ messages in thread

end of thread, other threads:[~2014-03-03 15:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-10 16:36 Euler with fallback Aditya Mahajan
2014-02-16 16:51 ` Sanjoy Mahajan
2014-02-16 18:29   ` Wolfgang Schuster
2014-02-17 14:12     ` Sanjoy Mahajan
2014-02-17 14:24       ` Wolfgang Schuster
2014-02-17 14:29         ` Sanjoy Mahajan
2014-02-17 14:45           ` Wolfgang Schuster
2014-02-17 20:07             ` Sanjoy Mahajan
2014-02-17 21:04               ` Aditya Mahajan
2014-02-17 21:08               ` Wolfgang Schuster
2014-02-18  1:05                 ` Sanjoy Mahajan
2014-02-18 11:29                   ` bug/issue with components and preamble (Re: Euler with fallback) Sanjoy Mahajan
2014-03-03 11:50 ` Euler with fallback Sanjoy Mahajan
2014-03-03 15:07   ` Aditya Mahajan
2014-03-03 15:24     ` Sanjoy Mahajan

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