ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font switching questions
@ 2009-03-17 21:48 Alan Stone
  2009-03-17 22:27 ` Hans Hagen
  0 siblings, 1 reply; 24+ messages in thread
From: Alan Stone @ 2009-03-17 21:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1069 bytes --]

Ahoi,

Following a previous discussion, I've been advised to "try to avoid
\switchtobodyfont and use \definedfont or \definefont instead".

(1) What's the difference between \definefont and \definedfont ?

(2) In the underneath example...

(2a) how to implement \define(d)font for font switching ?

(2b) how to define \myFontHook ?

Thanks,
Alan

\usemodule[t-lettrine]

\usetypescriptfile[tps_arial]
\usetypescript[arial]
\definetypeface[myFont][arial]

\usetypescriptfile[tps_timesnewroman]
\usetypescript[timesnewroman]
\definetypeface[myOtherFont][timesnewroman]

\def\myFontSize{12pt}
\def\myOtherFontSize{20pt}

\setupbodyfont[myFont,\myFontSize]

\setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}]

\starttext

\chapter{Chapter One}

%\lettrine[FontHook={\myFontHook}]{T}{hus}, I came to the conclusion that
the designer of a new
\lettrine{T}{hus}, I came to the conclusion that the designer of a new
system must not only be the implementer and first large-- scale user; the
designer should also write
the first user manual.

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1541 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: font switching questions
@ 2009-03-23 11:16 Vyatcheslav Yatskovsky
  2009-03-23 11:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 24+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-03-23 11:16 UTC (permalink / raw)
  To: software.list.1es9s; +Cc: ntg-context

Hello Alan,

If you need a typescript for Windows Arial, you can try font-win.tex,
included in the latest beta.

Vyatcheslav
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-03-23 11:20 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 21:48 font switching questions Alan Stone
2009-03-17 22:27 ` Hans Hagen
2009-03-17 23:48   ` Wolfgang Schuster
2009-03-18  8:05     ` Hans Hagen
2009-03-18  8:12   ` Alan Stone
2009-03-18  8:23     ` Hans Hagen
2009-03-18  8:39       ` Alan Stone
2009-03-18  8:51         ` Wolfgang Schuster
2009-03-18 10:44         ` Hans Hagen
2009-03-18 10:34       ` Alan Stone
2009-03-18 15:26       ` Alan Stone
2009-03-18 16:03         ` Wolfgang Schuster
2009-03-19 15:17           ` Alan Stone
2009-03-19 15:24             ` Taco Hoekwater
2009-03-19 16:38               ` Alan Stone
2009-03-19 18:17               ` George N. White III
2009-03-19 15:29             ` Hans Hagen
2009-03-19 16:39               ` Alan Stone
2009-03-19 15:36             ` Peter Rolf
2009-03-19 17:50         ` Wolfgang Schuster
2009-03-23 10:51           ` Alan Stone
2009-03-23 11:08             ` Wolfgang Schuster
2009-03-23 11:16 Vyatcheslav Yatskovsky
2009-03-23 11:20 ` 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).