ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Stefano Sanguinetti <fotesan@gmail.com>
Subject: Re: Mkiv, fonts in text and math mode, with \definebodyfont
Date: Tue, 1 Oct 2019 11:28:03 +0200	[thread overview]
Message-ID: <ede8ccb2-8ab8-e8e1-4eec-fa2452ca6978@xs4all.nl> (raw)
In-Reply-To: <CABAg1D4KWnrAMQjtcmv+Qv2AV_-X=D=ZKQvnF7jtGgkinoNM5w@mail.gmail.com>

On 9/30/2019 7:32 PM, Stefano Sanguinetti wrote:
> 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.
In mkiv we use a different model. If you want to use traditional type 1 
fonts you need to define a virtual (unicode) math font. You can look 
into px-math.lfg to see how that is done.

(Maybe I should remove these old family models from  mkiv/lmtx. probably 
no one would object.)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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-10-01  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-30 17:32 Stefano Sanguinetti
2019-10-01  9:28 ` Hans Hagen [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=ede8ccb2-8ab8-e8e1-4eec-fa2452ca6978@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=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).