[NTG-context] Euler with fallback

Sanjoy Mahajan sanjoy at MIT.EDU
Mon Mar 3 12:50:58 CET 2014


Aditya Mahajan <adityam at umich.edu> writes:

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

One inconsistency or maybe bug is that text subscripts come out in Euler
instead of Palatino.  

Here's an example (using 2014.02.14 beta).  The "Sun" subscript using
_{\tf Sun} or _{\rm Sun} was in Palatino in the corresponding MkII
setup, but is in Euler now.  The workaround of an hbox with \tfxx or
\tfx doesn't get quite the right size.

\usetypescriptfile[euler]

\definetypeface [mainface] [rm] [serif] [pagella]          [default]
\definetypeface [mainface] [tt] [mono]  [dejavu]           [default]
[rscale=0.9]
\definetypeface [mainface] [mm] [math]  [pagellaovereuler] [default]

\setupbodyfont[mainface]

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

\starttext

\placeformula\startformula
M_{\rm Sun}\quad M_{\hbox{\tfx Sun}} \quad M_{\hbox{\tfxx Sun}} \quad M_{\tf Sun}
\stopformula

\stoptext


More information about the ntg-context mailing list