From: "Vianney le Clément" <vleclement@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to define fallback font for symbols
Date: Fri, 17 Jun 2011 10:42:14 +0200 [thread overview]
Message-ID: <BANLkTi=X3vDJNsPn24DQLLttk3A9x2EAuQ@mail.gmail.com> (raw)
In-Reply-To: <4DFB07BF.5040200@wxs.nl>
2011/6/17 Hans Hagen <pragma@wxs.nl>:
> % \definefontfeature[zh][mode=node,script=hang,lang=zhs]
> % \definefontfallback[serifwhatever] [lmroman10-regular]
> [0x0000-0x0400][force=yes]
> % \definefontfallback[serifboldwhatever] [lmroman10-bold]
> [0x0000-0x0400][force=yes]
> % \definefontfallback[serifitalicwhatever] [lmroman10-italic]
> [0x0000-0x0400][force=yes]
> %
> \definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x0000-0x0400][force=yes]
> %
> % \starttypescript [serif] [zhfont]
> % \definefontsynonym [zhserif] [AdobeSongStd-Light]
> [features=zh,fallbacks=serifwhatever]
> % \definefontsynonym [zhserifbold]
> [AdobeHeitiStd-Regular][features=zh,fallbacks=serifboldwhatever]
> % \definefontsynonym [zhserifitalic]
> [AdobeKaitiStd-Regular][features=zh,fallbacks=serifitalicwhatever]
> % \definefontsynonym
> [zhserifbolditalic][AdobeHeitiStd-Regular][features=zh,fallbacks=serifbolditalicwhatever]
> % \stoptypescript
> %
> % \starttypescript [serif][zhfont][name]
> % \definefontsynonym[Serif] [zhserif] %
> [fallbacks=serifwhatever]
> % \definefontsynonym[SerifBold] [zhserifbold] %
> [fallbacks=serifboldwhatever]
> % \definefontsynonym[SerifItalic] [zhserifitalic] %
> [fallbacks=serifitalicwhatever]
> % \definefontsynonym[SerifBoldItalic] [zhserifbolditalic] %
> [fallbacks=serifbolditalicwhatever]
> % \stoptypescript
> %
> % \starttypescript[myfont]
> % \definetypeface[myfont][rm][serif][zhfont]
> % \stoptypescript
> %
> % \usetypescript[myfont] \setupbodyfont[myfont,rm,12pt]
> %
> % \starttext
> % fonts {\bf fonts} {\bi fonts} {\it fonts}
> % \stoptext
This works fine, thanks.
However, instead of redefining the typescripts, is it possible to set
a global fallback for all fonts, like we can do for font features?
E.g.
\definefontfeature[default][default][fallbacks=whatever]
to be able to reuse existing typescripts.
Vianney
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-06-17 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 7:43 Vianney le Clément
2011-06-17 7:52 ` Hans Hagen
2011-06-17 8:42 ` Vianney le Clément [this message]
2011-06-17 7:59 ` luigi scarso
2011-06-17 11:19 ` Wolfgang Schuster
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='BANLkTi=X3vDJNsPn24DQLLttk3A9x2EAuQ@mail.gmail.com' \
--to=vleclement@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).