ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jacob Kauffmann via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jacob Kauffmann <jacobkauffmann@me.com>
Subject: Re: problem with Segoe Ui Symbol as fallback font
Date: Wed, 4 Jan 2023 14:29:37 +0100	[thread overview]
Message-ID: <35ED7A03-E18D-4122-A4BA-B999F7D846D2@me.com> (raw)
In-Reply-To: <597E88F4-F59B-4B8A-BAC2-EE1B0FFC091E@me.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1207 bytes --]

The problem is that now that \bf, \it and so on stopped working outside math mode.
A workaround is to add \rm after \starttext.

Maybe the developers can shed some light :)
Please find MWE below.

Cheers,
Jacob

\definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasescript]

\starttypescript[mainface]
  \definetypeface[mainface][rm][serif][pagella][default]
  \definetypeface[mainface][ss][sans] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][tt][mono] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][mm][math] [pagella][default][fallbacks=cal-fallback]
\stoptypescript

\definefontfamily[mainface][mm][mainface]
\definefontfamily[mainface][rm][pagella][bf=style:bold]
\usetypescript[mainface]
\setupbodyfont[mainface]

\startbuffer
The quick brown fox jumps over the lazy dog
\stopbuffer

\starttext
% \rm % works
{\rm \getbuffer}\par
{\ss \getbuffer}\par
{\tt \getbuffer}\par
{\bf \getbuffer}\par
{\it \getbuffer}\par
{\sl \getbuffer}\par
{\bi \getbuffer}\par
{\bs \getbuffer}\par
{\sc \getbuffer}

Should be Palatino: $x + y$ $f({\bi x})$

Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ $\mathscr{I}$
\stoptext

[-- Attachment #1.1.2: Type: text/html, Size: 3460 bytes --]

[-- Attachment #1.2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-01-04 13:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04 12:32 Jacob Kauffmann via ntg-context
2023-01-04 13:29 ` Jacob Kauffmann via ntg-context [this message]
2023-01-04 14:49   ` Henning Hraban Ramm via ntg-context
2023-01-04 14:49   ` Hans Hagen via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2022-11-07 18:42 Henning Hraban Ramm via ntg-context

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=35ED7A03-E18D-4122-A4BA-B999F7D846D2@me.com \
    --to=ntg-context@ntg.nl \
    --cc=jacobkauffmann@me.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).