ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik <rik@panix.com>
To: ntg-context@ntg.nl
Subject: Re: issue loading fonts
Date: Tue, 23 Oct 2018 10:30:36 -0400	[thread overview]
Message-ID: <ff6723a5-8a25-e358-194e-d265fb460792@panix.com> (raw)
In-Reply-To: <20181023091732.GA108566@phare.normalesup.org>


[-- Attachment #1.1: Type: text/plain, Size: 1439 bytes --]

On 10/23/2018 05:17, Arthur Reutenauer wrote:
> ...
>    I can reproduce this.  That means ConTeXt won’t let you use a
> regular-weight font face as the bold version of a font family, nor an
> upright font as an italic one, which in my opinion is rather a good
> thing.

That is simply wrong.

Not only will ConTeXt happily let you do that, it is sometimes a good 
thing to do. In a font with many weights, you have to select appropriate 
faces for the medium or printing method, and using a light face for the 
normal and a regular weight (whatever that means for the font) for bold 
emphasis. Or you may want change the way emphasis is used to make a 
point, and reverse bold and italic in one swell foop.

The example on the wiki page for \definefontfamily shows some of this in 
action, but ConTeXt does not get in the way of doing even sillier things:

    \definefontfamily   [reutenauer]
                         [rm]
                         [sourcecodepro]
                         [tf=style:bolditalic,
                          it=file:kabelblack.ttf,
                          bf=style:normal,
                          bi=file:comic.ttf]
    \setupbodyfont      [reutenauer]
    \starttext
    tf: {\tf \fontname\font\ \samplefile{ward}}\par
    it: {\it \fontname\font\ \samplefile{ward}}\par
    bf: {\bf \fontname\font\ \samplefile{ward}}\par
    bi: {\bi \fontname\font\ \samplefile{ward}}\par
    \stoptext


-- 
Rik



[-- Attachment #1.2: Type: text/html, Size: 2013 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-10-23 14:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22 19:18 Pablo Rodriguez
2018-10-22 19:35 ` Wolfgang Schuster
2018-10-22 20:03   ` Pablo Rodriguez
2018-10-23  9:17     ` Arthur Reutenauer
2018-10-23 14:30       ` Rik [this message]
2018-10-23 15:42         ` Arthur Reutenauer
2018-10-23  9:54     ` luigi scarso
2018-10-23 10:23       ` Arthur Reutenauer
2018-10-23 18:34       ` luigi scarso

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=ff6723a5-8a25-e358-194e-d265fb460792@panix.com \
    --to=rik@panix.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).