From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Overriding a font face in a typescript
Date: Tue, 7 Feb 2017 20:34:53 +0100 [thread overview]
Message-ID: <613ff87d-0160-1775-f54f-a8ab23ad977f@gmx.es> (raw)
In-Reply-To: <5e912572-3d93-33f6-da1b-48ab09cc6b55@rik.users.panix.com>
On 02/07/2017 07:52 PM, Rik Kabel wrote:
> ConTeXters,
>
> How can I override one or two faces in a typescript?
Hi Rik,
this might be what you were looking for:
\definefontfamily
[mainface]
[rm]
[TeX Gyre Pagella]
[it={TeX Gyre Cursor-Italic},
bf={TeX Gyre Adventor-Bold},
bi={TeX Gyre Termes-BoldItalic}]
\setupbodyfontenvironment
[default]
[em=italic]
\setupbodyfont[mainface]
\starttext
\startTEXpage[offset=1em]
Roman font {\em italic}
\bf Bold font \em bold italic
\stopTEXpage
\stoptext
It isn’t a typescript, but it may work too.
Please, always include a mininal working sample.
Let us know if you had something different in mind.
Just in case it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2017-02-07 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 18:52 Rik Kabel
2017-02-07 19:34 ` Pablo Rodriguez [this message]
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=613ff87d-0160-1775-f54f-a8ab23ad977f@gmx.es \
--to=oinos@gmx.es \
--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).