From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font switching questions
Date: Thu, 19 Mar 2009 18:50:14 +0100 [thread overview]
Message-ID: <0B12D69F-ED5F-42C0-846A-7B51AE01ABDC@gmail.com> (raw)
In-Reply-To: <326847810903180826v1f8e26edva1fbf52dcaad6aab@mail.gmail.com>
Am 18.03.2009 um 16:26 schrieb Alan Stone:
> On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen <pragma@wxs.nl> 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!
% 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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-19 17:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 21:48 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0B12D69F-ED5F-42C0-846A-7B51AE01ABDC@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).