ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefano Sanguinetti <fotesan@gmail.com>
To: ntg-context@ntg.nl
Subject: Mkiv, fonts in text and math mode, with \definebodyfont
Date: Mon, 30 Sep 2019 19:32:16 +0200	[thread overview]
Message-ID: <CABAg1D4KWnrAMQjtcmv+Qv2AV_-X=D=ZKQvnF7jtGgkinoNM5w@mail.gmail.com> (raw)


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

Hello,

I am trying to understand something more about fonts in text and math mode,
in Mkiv Context. I would like to be able to change things at the "define
body fonts" level.

I tried the following, in order to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][rm][tf=rsfs10 sa *]
\starttext
\tf ABCD
\tfa ABCD
\stoptext

The \tfa ABCD is displayed as rsfs as I wanted, but the \tf ABCD is
displayed as default fonts. Why ? What could I change in order to have \tf
ABCD in rsfs ?

In math mode, I am not able to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][mm][mr=rsfs10 sa *,ex=rsfs10 sa *,mi=rsfs10 sa
*,sy=rsfs10 sa *,ma=rsfs10 sa *,mb=rsfs10 sa *]
\starttext
$ABCD$
\stoptext

That gives ABCD in default math mode fonts.
Is there a simple way to do it with the \definebodyfont command ?

Thank you in advance for your comments.

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

[-- Attachment #2: Type: text/plain, Size: 493 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:[~2019-09-30 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-30 17:32 Stefano Sanguinetti [this message]
2019-10-01  9:28 ` Hans Hagen

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='CABAg1D4KWnrAMQjtcmv+Qv2AV_-X=D=ZKQvnF7jtGgkinoNM5w@mail.gmail.com' \
    --to=fotesan@gmail.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).