From: Otso Helenius <context@pi-xi.net>
To: ntg-context@ntg.nl
Subject: Font selection problem in MKIV
Date: Sat, 21 May 2011 17:38:57 +0300 [thread overview]
Message-ID: <20110521143857.GA8313@innsmouth.lan> (raw)
Hello,
I'm using ConTeXt minimals MKIV (latest snapshot) on Linux with loads of system ttf & otf fonts. Recently I stumbled upon a peculiar problem.
The example below outputs three lines in three different fonts, the Computer/Latin(?) Modern, League Script and Pompadour, as expected.
However, if I comment out \setupbodyfont line or set anything else as the body font than LeagueScript or Pompadour, all text in the
document will be output solely with the default Modern font. Am I missing something here? Is there something wrong with the way I select
and use multiple fonts in the same document?
\setuppapersize[A4][A4]
\starttypescript[Sans][LeagueScript]
\definefontsynonym[Sans][name:leaguescriptthin]
\stoptypescript
\starttypescript[Sans][Pompadour]
\definefontsynonym[Sans][name:Pompadour]
\stoptypescript
\definetypeface[LeagueScript][ss][Sans][LeagueScript]
\definetypeface[Pompadour][ss][Sans][Pompadour]
\setupbodyfont[LeagueScript,12pt]
\starttext
01234567890
\switchtotypeface[LeagueScript][12pt]
01234567890
\switchtotypeface[Pompadour][12pt]
01234567890
\stoptext
Best regards,
Otso Helenius
___________________________________________________________________________________
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 reply other threads:[~2011-05-21 14:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-21 14:38 Otso Helenius [this message]
2011-05-21 14:50 ` Wolfgang Schuster
2011-05-21 15:31 Otso Helenius
2011-05-21 17:31 ` Wolfgang Schuster
2011-05-21 18:21 ` Otso Helenius
2011-05-22 7:22 ` Wolfgang Schuster
2011-05-21 20:03 ` Otso Helenius
2011-05-22 7:25 ` 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=20110521143857.GA8313@innsmouth.lan \
--to=context@pi-xi.net \
--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).