ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font selection problem in MKIV
@ 2011-05-21 14:38 Otso Helenius
  2011-05-21 14:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Otso Helenius @ 2011-05-21 14:38 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Font selection problem in MKIV
@ 2011-05-21 15:31 Otso Helenius
  2011-05-21 17:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Otso Helenius @ 2011-05-21 15:31 UTC (permalink / raw)
  To: ntg-context

> Try
> > \switchtotypeface[LeagueScript][12pt]
> \switchtobodyfont[LeageScript]

Is \switchtobodyfont the recommended way of changing the typeface temporarily anywhere in a document
(for example when making cover page graphics)? Its name implies only document body.

Nevertheless, \switchtobodyfont works (at least in the document body, haven't tested yet elsewhere)
without setting \setupbodyfont.

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

This seems to work for most fonts, with others like Pompadour it fails (pompadour has SubFamily string of
"Black" [Mac] and "Regular" [Windows] in the .otf), and spec fails to find pompadour-normal-normal which
it is looking for). Pompadour is a serif font, so i tried also with arguments [rm][specserif].

I have looked into co-typography.pdf for help, and while it is very extensive in some parts, in others it
is (too) technical and lacks expanations for some parameters.

As soon as I get these issues sorted out I'll try if I can make the MKIV font pages in the Wiki a bit
more beginner friendly.



Best regads,
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-22  7:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 14:38 Font selection problem in MKIV Otso Helenius
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

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).