2009/3/19 Wolfgang Schuster
Am 18.03.2009 um 16:26 schrieb Alan Stone:
On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen
wrote: (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Read and understand!
Thanks for your comments Wolfgang. Hope they're useful and beneficial to other people. The example I adapted and was enquiring about was in the context of what Hans replied earlier...
(there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation)
Hans, does what you meant by the above correspond to Wolfgang's example or did you mean something else ? If so, what precisely please ? Thanks, Alan
% Typescript for Arial
\starttypescript [sans] [arial] \setups [font:fallback:sans] \definefontsynonym [Sans] [ArialNormal] \definefontsynonym [SansItalic] [ArialItalic] \definefontsynonym [SansBold] [ArialBold] \definefontsynonym [SansBoldItalic] [ArialBoldItalic] \stoptypescript
\starttypescript [sans] [arial] \definefontsynonym [ArialNormal] [name:arial] [features=default] \definefontsynonym [ArialItalic] [name:arialitalic] [features=default] \definefontsynonym [ArialBold] [name:arialbold] [features=default] \definefontsynonym [ArialBoldItalic] [name:arialbolditalic] [features=default] \stoptypescript
\starttypescript [arial] \definetypeface [arial] [ss] [sans] [arial] [default] \stoptypescript
% Load the Arial typescript for certain elements
\usetypescript[sans][arial]
% Load the main typescripts and set the font for the document
\usetypescript[palatino] \setupbodyfont[palatino]
% Define a new font for the header and set it
\definefont[SectionStyle][ArialBold sa 1.5] % Symbolic name for Arial
\setuphead[section][style=SectionStyle]
\starttext
\section{Knuth}
\input Knuth
\section{Zapf}
\input zapf
\stoptext
Wolfgang