ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@MIT.EDU>
To: Aditya Mahajan <adityam@umich.edu>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Euler with fallback
Date: Mon, 03 Mar 2014 06:50:58 -0500	[thread overview]
Message-ID: <87d2i3sdp9.fsf@approx.mit.edu> (raw)
In-Reply-To: <alpine.LNX.2.02.1308101227530.23278@ybpnyubfg.ybpnyqbznva>

Aditya Mahajan <adityam@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
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2014-03-03 11:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-10 16:36 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 ` Sanjoy Mahajan [this message]
2014-03-03 15:07   ` Euler with fallback Aditya Mahajan
2014-03-03 15:24     ` Sanjoy Mahajan
     [not found] <mailman.310.1392661733.2494.ntg-context@ntg.nl>
2014-02-17 22:51 ` Jeong Dal

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=87d2i3sdp9.fsf@approx.mit.edu \
    --to=sanjoy@mit.edu \
    --cc=adityam@umich.edu \
    --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).