ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Euler with fallback
Date: Sat, 10 Aug 2013 12:36:29 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1308101227530.23278@ybpnyubfg.ybpnyqbznva> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2013-08-10 16:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-10 16:36 Aditya Mahajan [this message]
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
     [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=alpine.LNX.2.02.1308101227530.23278@ybpnyubfg.ybpnyqbznva \
    --to=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).