ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Mkiv, fonts in text and math mode, with \definebodyfont
@ 2019-09-30 17:32 Stefano Sanguinetti
  2019-10-01  9:28 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Sanguinetti @ 2019-09-30 17:32 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-01  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 17:32 Mkiv, fonts in text and math mode, with \definebodyfont Stefano Sanguinetti
2019-10-01  9:28 ` Hans Hagen

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).