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