ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem switching fonts in MKII
@ 2011-01-30 18:18 Tom
  2011-01-31 10:37 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Tom @ 2011-01-30 18:18 UTC (permalink / raw)
  To: ntg-context

Kudos for the new documentation chapters on Typography and Fonts. However, I
still can't completely get my hands around it. Running the following code
under TexLive MKII doesn't give the desired results in that defining font
synonyms and switching to those typefaces doesn't seem to work. Obviously,
I'm doing something wrong.

\usetypescriptfile[type-gyr]
\usetypescript[palatino][ec]
\setupbodyfont[palatino,11pt]
\definefontsynonym[AltTextFont][palatino]

\usetypescriptfile[type-one]
\usetypescript[bookman][default]
\setupbodyfont[bookman,11pt]
\definefontsynonym[TextFont][bookman]

\starttext

\switchtotypeface[TextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[AltTextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[bookman][11pt]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[palatino][11pt]
\showbodyfont
\input knuth

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___________________________________________________________________________________
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] 3+ messages in thread

* Re: Problem switching fonts in MKII
  2011-01-30 18:18 Problem switching fonts in MKII Tom
@ 2011-01-31 10:37 ` Taco Hoekwater
  0 siblings, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2011-01-31 10:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi,


On 01/30/11 19:18, Tom wrote:
> Kudos for the new documentation chapters on Typography and Fonts. However, I
> still can't completely get my hands around it. Running the following code
> under TexLive MKII doesn't give the desired results in that defining font
> synonyms and switching to those typefaces doesn't seem to work. Obviously,
> I'm doing something wrong.

As far as I know, you cannot define fontsynonyms to typefaces. If you
want to use names like 'TextFont' as a typeface, you have to use
\definetypeface.

Best wishes,
Taco
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Problem switching fonts in MKII
@ 2011-01-31 13:29 Tom
  0 siblings, 0 replies; 3+ messages in thread
From: Tom @ 2011-01-31 13:29 UTC (permalink / raw)
  To: ntg-context

Hi,


On 01/30/11 19:18, Tom wrote:
> Kudos for the new documentation chapters on Typography and Fonts. However,
I
> still can't completely get my hands around it. Running the following code
> under TexLive MKII doesn't give the desired results in that defining font
> synonyms and switching to those typefaces doesn't seem to work. Obviously,
> I'm doing something wrong.

As far as I know, you cannot define fontsynonyms to typefaces. If you
want to use names like 'TextFont' as a typeface, you have to use
\definetypeface.

Best wishes,
Taco

Thanks, Taco. That did the trick. Now to experiment with more of the fonts
included in the TexLive distribution.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-01-31 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-30 18:18 Problem switching fonts in MKII Tom
2011-01-31 10:37 ` Taco Hoekwater
2011-01-31 13:29 Tom

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