ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Math prime issues for some fonts
@ 2021-11-29 17:40 Jack Hill via ntg-context
  0 siblings, 0 replies; 7+ messages in thread
From: Jack Hill via ntg-context @ 2021-11-29 17:40 UTC (permalink / raw)
  To: ntg-context; +Cc: Jack Hill


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

On Fri, 26 Nov 2021 at 11:28, Hans Hagen <j.hagen@xs4all.nl> wrote:
> So to summarize: with primes we have to deal with (1) frozen tex math
> expectations that won't change (although in context we're free to do
> so), which (2) have found their way in unicode, and (3) also in fonts
> due to the way traditional tex does it, and (4) with which we cannot
> deal with in the engine, so (5) we do it our own contexty way, in the
> hope that (6) in the end it all looks good and (7) also gives us some of
> the benefits that i don't even dare to bring up here in order not to
> make it sound more complex.

Thank you for the explanation. It's always interesting to hear about what
goes on under the hood.

> As a note: if you notice suboptional things in math fonts, don't
> hesitate to make a good minimal example and then ask Mikael to look into
> is because he deals with and coordinates the tuning of goodie files.

I have noticed that the top bar of square root signs don't seem to connect
properly with the angled part. This is visible with multiple fonts (some
make it more obvious than others) at various zoom levels (I'm using Okular
on Linux but other pdf viewers show the same - also on Windows). I've no
idea if this is visible in print since I don't print the pdfs. The effect
is also reproducible with the wiki version of context.

\starttext

\starttabulate[|l|c|]
\FL
\BC Font name          \BC Math sqrt                               \NR
\ML
\NC Latin Modern Roman \NC                            \m{\sqrt{x}} \NR
\NC TeX Gyre Termes    \NC \switchtobodyfont[termes]  \m{\sqrt{x}} \NR
\NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{\sqrt{x}} \NR
\NC TeX Gyre Bonum     \NC \switchtobodyfont[bonum]   \m{\sqrt{x}} \NR
\NC TeX Gyre Schola    \NC \switchtobodyfont[schola]  \m{\sqrt{x}} \NR
\NC STIX Two           \NC \switchtobodyfont[stixtwo] \m{\sqrt{x}} \NR
\BL
\stoptabulate

\stoptext

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

[-- Attachment #2: sqrt-schola-400%-zoom.png --]
[-- Type: image/png, Size: 2368 bytes --]

[-- Attachment #3: 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] 7+ messages in thread
* Math prime issues for some fonts
@ 2021-11-26 17:18 Jack Hill via ntg-context
  2021-11-26 17:39 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Jack Hill via ntg-context @ 2021-11-26 17:18 UTC (permalink / raw)
  To: ntg-context; +Cc: Jack Hill


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

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.

Jack

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

[-- Attachment #2: pdf-output.png --]
[-- Type: image/png, Size: 14682 bytes --]

[-- Attachment #3: 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] 7+ messages in thread

end of thread, other threads:[~2021-11-29 17:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 17:40 Math prime issues for some fonts Jack Hill via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
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
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

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