ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \definefallbackfamily for math fonts, again
Date: Thu, 27 Oct 2016 19:58:25 +0200	[thread overview]
Message-ID: <58124041.80901@gmail.com> (raw)
In-Reply-To: <freemail.20161026193613.2540.1@fmxmldata06.freemail.hu>


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

> Csikos Bela <mailto:bcsikos425@freemail.hu>
> 26. Oktober 2016 um 19:36
> Dear list members:
>
> I have the following context code:
>
> \definefontfamily [doc] [rm] [TeX Gyre Bonum]
> \definefontfamily [doc] [ss] [Tex Gyre Adventor]
> \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
> [range=0x00000-0x2FA1F,force=yes]
> \definefontfamily [doc] [mm] [TeX Gyre Pagella Math]
> \setupbodyfont[doc,10pt]
> \starttext
> Text font: <SERIF C H O N P>, {\ss <SANS SERIF C H O N P>} \\
> Math font: \m{<DEFAULT~C~H~O~N~P>}, \m{\rm <SERIF~C~H~O~N~P>}, \m{\ss 
> <SANS~SERIF~C~H~O~N~P>}
> \stoptext
>
> 1. In the pdf result \rm math font is Tex Gyre Adventor and \ss math 
> is Tex Gyre Pagella.
> How can I have context to print math \rm with Tex Gyre Pagella serif, 
> and math \ss
> with Tex Gyre Adventor font? Why a roman/serif font is replaced with a 
> sans serif font?
The \rm and \ss commands behave different in math mode and change only 
the math alphabet,
this means you’re always in the same font and the result of A changes 
from a serif italic uppercase A
to a sans serif italic uppercase A to a blackletter uppercase etc.
> 2. What range would be the most correct to include all characters for 
> replacement?
\definefontfamily     [doc] [rm] [TeX Gyre Bonum]
\definefontfamily     [doc] [ss] [Tex Gyre Adventor]

\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
[range=lowercasenormal,offset=lowercasesansserifnormal]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
[range=lowercasenormal,offset=lowercasesansserifnormal,tf=style:italic]

\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
[range=uppercasenormal,offset=uppercasesansserifnormal]
\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] 
[range=uppercasenormal,offset=uppercasesansserifnormal,tf=style:italic]

\definefontfamily     [doc] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[doc,10pt]

\starttext
Text font: <SERIF C H O N P>, {\ss <SANS SERIF C H O N P>} \par
Math font: \m{<DEFAULT~C~H~O~N~P>}, \m{\rm <SERIF~C~H~O~N~P>}, \m{\ss 
<SANS~SERIF~C~H~O~N~P>}
\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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:[~2016-10-27 17:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26 17:36 Csikos Bela
2016-10-27 17:58 ` Wolfgang Schuster [this message]
2016-11-02 15:48   ` Csikos Bela

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=58124041.80901@gmail.com \
    --to=schuster.wolfgang@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).