From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...
Date: Thu, 6 Feb 2020 20:24:44 +0100 [thread overview]
Message-ID: <f9edfb7c-031c-beb6-7571-96d36645ad3c@gmx.es> (raw)
In-Reply-To: <463b0e6557a1efb15d7697321373ea83@vivaldi.net>
On 2/6/20 10:04 AM, context@vivaldi.net wrote:
> Hello,
>
> although font switching used to be discussed here and I studied wiki
> about font changing, I don't switch fonts in ConTeXt very often and my
> "maximum" font change was provided by \setupbodyfont[(e.g. termes)].
> [...]
> so that:
>
> - normal text and math (nothing special - just subscripts) would be
> typeset with work-sans.light.otf
> - \bold (\bf) would use work-sans.bold.otf,
> - \emph (\em and \it) would use work-sans.light-italic.otf,
> - \bi would use work-sans.bold-italic.otf
> - also commands \bfa, \bfc, ... would use work-sans.bold.otf scaled
> somehow (probably by multiples of 1.2).
>
> Some help setting it up and making it work would be appreciated...
Hi Lukas,
I think this is what you might need:
\definefontfamily
[mainface]
[rm]
[WorkSans]
[tf={style:light}, it={style:lightitalic}]
\setupbodyfont[mainface]
\setupbodyfontenvironment
[default]
[a=1.2,
b=2.4,
c=3.6,
d=4.8,
em=italic]
\starttext
\startTEXpage[offset=1em]
roman\\
{\bf bold}\\
{\it italic}\\
{\bi bold italic}\\
{\tfa roman}\\
{\bfb bold}\\
{\itc italic}\\
{\bid bold italic}\\
\stopTEXpage
\stoptext
I hope 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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-02-06 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-06 9:04 context
2020-02-06 19:24 ` Pablo Rodriguez [this message]
2020-02-07 7:34 ` context
2020-02-07 20:22 ` Pablo Rodriguez
2020-02-07 21:58 ` Henning Hraban Ramm
2020-02-08 11:49 ` 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=f9edfb7c-031c-beb6-7571-96d36645ad3c@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).