From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to define fallback font for symbols
Date: Fri, 17 Jun 2011 13:19:42 +0200 [thread overview]
Message-ID: <5CC6C280-DE17-45F8-B7C1-77D50F9EEE42@googlemail.com> (raw)
In-Reply-To: <BANLkTinuSpg2Ce=kwEvAhjcH=v=gdH1J-g@mail.gmail.com>
Am 17.06.2011 um 09:43 schrieb Vianney le Clément:
> Hi all,
>
> Is it possible to set a fallback font from which glyphs will be taken
> if the current font doesn't have it? For example, I'd want to use
> fancy miscellaneous symbols from the Symbola font using their unicode
> codepoint without any extra font-changing command (and obviously, I
> don't want to use Symbola for the rest of the text).
>
> Alternatively, setting different fonts for different unicode blocks
> would also do the trick.
\usemodule[simplefonts]
\setmainfontfallback[Symbola][range=0x0001-0xFFFF,force=no]
\setmainfont[TeX Gyre Pagella]
\starttext
Palatino ❡
\stoptext
You can control the replacement of the main font with the “check”
and “force” keys (requires the latest version of the module i uploaded
a few minutes ago), Hans described their function in context’s source:
% check : only replace when present in replacement font (default: no)
% force : force replacent even when basefont has glyph (default: yes)
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-06-17 11:19 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
2011-06-17 7:59 ` luigi scarso
2011-06-17 11:19 ` Wolfgang Schuster [this message]
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=5CC6C280-DE17-45F8-B7C1-77D50F9EEE42@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--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).