ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Font selection problem in MKIV
Date: Sat, 21 May 2011 16:50:29 +0200	[thread overview]
Message-ID: <EF24AE9F-8C99-4F0F-90B1-FB0941564D3B@googlemail.com> (raw)
In-Reply-To: <20110521143857.GA8313@innsmouth.lan>


Am 21.05.2011 um 16:38 schrieb Otso Helenius:

> 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?

Try

> \switchtotypeface[LeagueScript][12pt]

\switchtobodyfont[LeageScript]

and

> \switchtotypeface[Pompadour][12pt]

\switchtobodyfont[Pompadour]


You can also replace (but check the output because
the spec-settings give sometimes unexpected output)

> \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]


with

\definetypeface[LeagueScript][ss][specsans][League Script Thin]
\definetypeface[Pompadour]   [ss][specsans][Pompadour]

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
___________________________________________________________________________________


  reply	other threads:[~2011-05-21 14:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-21 14:38 Otso Helenius
2011-05-21 14:50 ` Wolfgang Schuster [this message]
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=EF24AE9F-8C99-4F0F-90B1-FB0941564D3B@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).