From: Alan Stone <software.list.1es9s@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font switching questions
Date: Wed, 18 Mar 2009 11:34:11 +0100 [thread overview]
Message-ID: <326847810903180334s76d15a85vdd88e256e2ea4dc5@mail.gmail.com> (raw)
In-Reply-To: <49C0AF85.7040605@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1520 bytes --]
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)
>
> these symbolic names are there for a reason as i never want to see hard
> coded font names (and features) in my document styles more than once
What I'm looking for...
With:
\starttypescript [serif/sans] [somefont]
\definefontsynonym [SomeFontRegular] [name:somefont]
[features=default]
\definefontsynonym
[SomeFontItalic] [name:somefontitalic] [features=default]
\definefontsynonym
[SomeFontBold] [name:somefontbold] [features=default]
\definefontsynonym
[SomeFontBoldItalic] [name:somefontbolditalic] [features=default]
\stoptypescript
\starttypescript [serif/sans] [somefont]
\setups [font:fallback:sans]
\definefontsynonym [Regular] [SomeFontRegular]
\definefontsynonym [Italic] [SomeFontItalic]
\definefontsynonym [Bold] [SomeFontBold]
\definefontsynonym [BoldItalic] [SomeFontBoldItalic]
\stoptypescript
\starttypescript [somefont]
\definetypeface [somefont] [rm/ss] [serif/sans] [somefont] [default]
\stoptypescript
\usetypescriptfile[tps_somefont]
\usetypescript[somefont]
\definetypeface[myXTypeface][somefont]
and...
* somefont = arial, times, tahoma, courrier, ...
* X = Body/Chapter/Section/.../Header/Footer/...
how to...
\def\myXSymbolicName=\somecommandRegular/Bold/Italic{myXTypeface}
for...
\definefont[myXFont][myXSymbolicName sa myXScale]
Alan
[-- Attachment #1.2: Type: text/html, Size: 2132 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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-18 10:34 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 [this message]
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
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=326847810903180334s76d15a85vdd88e256e2ea4dc5@mail.gmail.com \
--to=software.list.1es9s@gmail.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).