ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Question on style-italic vs style=italicface
Date: Sun, 24 Oct 2021 17:35:09 +0200	[thread overview]
Message-ID: <8b93bad7-e04e-d5f9-3328-daca716c4e56@gmail.com> (raw)
In-Reply-To: <52AE7095-F5F0-47B7-91C2-B1E603A3026E@fiee.net>

Henning Hraban Ramm via ntg-context schrieb am 02.10.2021 um 11:46:
>> Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>:
>>
>> Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:
>>> Wolfgang (off-list),
>>>
>>> It is simply wrong to say that \italicface as defined gives only \it or \bi as a result. Look at the definition. If the current fontalternative is it \it it will give a \tf result. It is sensitive to the current state in a similar way that \em and \emph are, but it will always give an italic or roman result.
>>>
>> If we leave the comparisons between \em and \italicface aside and talk only about the results from \italicface we have a common ground.
>>
>> You're right the results from \italicface aren't predictable and a fix is needed but the same applies also to \boldface, \slantedface and \typeface.
>>
>> Attached is the output from a modified version of the styling command (the \sc column is the fallback style). \swapface is unchanged and I'm not sure about its output because it uses the \em code for italic and slanted which means \setupbodyfontenvironment[default][em=blue] affects also the \swapface results.
> Thank you very much for attacking and clarifying this! It confused me from the beginning...

Just a short update on the topic. The following four font switches 
result now in predictable output (e.g. \typeface produces always upright 
text which is either \tf or \bf):

     - \typeface
     - \italicface
     - \slantedface
     - \boldface

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-10-24 15:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26 20:13 Rik Kabel via ntg-context
2021-09-26 20:29 ` Wolfgang Schuster via ntg-context
2021-09-26 22:20   ` Rik Kabel via ntg-context
2021-09-26 22:37     ` Wolfgang Schuster via ntg-context
2021-09-26 22:49       ` Rik Kabel via ntg-context
2021-10-02  8:34         ` Wolfgang Schuster via ntg-context
2021-10-02  9:46           ` Henning Hraban Ramm via ntg-context
2021-10-24 15:35             ` Wolfgang Schuster via ntg-context [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=8b93bad7-e04e-d5f9-3328-daca716c4e56@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).