ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jack Hill via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Jack Hill <jackhill3103@gmail.com>
Subject: Re: Math prime issues for some fonts
Date: Fri, 26 Nov 2021 18:53:37 +0000	[thread overview]
Message-ID: <CALCtFnL-isafh-hyG72bRBucoepEBZy7e=CutqAZ45P9JQbRqA@mail.gmail.com> (raw)
In-Reply-To: <52545bd5-5910-73da-c82b-afefb1368479@gmail.com>

On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster
<wolfgang.schuster.lists@gmail.com> wrote:
>
> Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:
> > Hi list,
> >
> > When I run this test code
> >
> > \definefontfamily[trm][math][tex gyre termes math]
> > \definefontfamily[pag][math][tex gyre pagella math]
> > \definefontfamily[bon][math][tex gyre bonum math]
> > \definefontfamily[sch][math][tex gyre schola math]
> > \definefontfamily[stx][math][stix two math]
> > \starttext
> > \starttabulate[|c|c|]
> > \FL
> > \NC \bf Font name \NC \bf Math prime \NR
> > \ML
> > \NC Latin modern \NC \m{x'} \NR
> > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
> > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
> > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
> > \NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
> > \NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
> > \BL
> > \stoptabulate
> > \stoptext
> >
> > on my machine, the prime symbols are being placed too high (except for
> > latin modern which is normal).
> > Running the same code on the wiki gives the correct output though.
> > Does anyone else get the same output? Screenshot attached.
>
> Use \definetypeface to load/set the math fonts.
>
> \starttext
>
> \starttabulate[|l|c|]
> \FL
> \BC Font name          \BC Math prime                        \NC\NR
> \ML
> \NC Latin Modern Roman \NC                            \m{x'} \NC\NR
> \NC TeX Gyre Termes    \NC \switchtobodyfont[termes]  \m{x'} \NC\NR
> \NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
> \NC TeX Gyre Bonum     \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
> \NC TeX Gyre Schola    \NC \switchtobodyfont[schola]  \m{x'} \NC\NR
> \NC STIX Two           \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
> \BL
> \stoptabulate
>
> \stoptext
>
> Wolfgang

Thanks, \definetypeface fixes it. Should I not be using \definefontfamily?
I've just checked eulernova and the prime is still too high for this font.

\switchtobodyfont[eulernova]
\starttext
\m{x'}
\stoptext
___________________________________________________________________________________
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:[~2021-11-26 18:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 17:18 Jack Hill via ntg-context
2021-11-26 17:39 ` Wolfgang Schuster via ntg-context
2021-11-26 18:53   ` Jack Hill via ntg-context [this message]
2021-11-26 21:05     ` Mikael Sundqvist via ntg-context
2021-11-27 12:28       ` Hans Hagen via ntg-context
2021-11-27  8:21     ` Wolfgang Schuster via ntg-context
2021-11-29 17:40 Jack Hill 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='CALCtFnL-isafh-hyG72bRBucoepEBZy7e=CutqAZ45P9JQbRqA@mail.gmail.com' \
    --to=ntg-context@ntg.nl \
    --cc=jackhill3103@gmail.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).