On Thu, Mar 15, 2018 at 9:24 PM, Mikael P. Sundqvist <mickep@gmail.com> wrote:
On Thu, Mar 15, 2018 at 11:00 AM, Hans Hagen <pragma@wxs.nl> wrote:
On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:
Hi Hans and others!

I don't know if this is a problem with the font itself or if it is ConTeXt. In any case, the test file below gives strange output (attached). In particular the space/kerning after $f$ seems to be off.

the fonts have bad glyph dimensions that assume italics always to be applied (as in traditional tex fonts)

you can put this at the top of your file:

\definefontfeature[mathextra][collapseitalics=yes]

awaiting fixed fonts (if they never get fixed we can consider applying this feature by default)

Ulrike Fischer reminded me in the StackExchange chat that not so long time ago there was some similar issue with \mathcal P discussed on this list. Is it the same problem? (The input $f \tracinglostchars=0 \Uchar"EEEFF$) indeed makes it look better between the $f$ and the parenthesis.)

/Mikael

%%%
\setupbodyfont[bonum]

\starttext
\startTEXpage[offset=3bp]
(Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)

There might be more problems (like between $t$ and the parenthesis in $e^t$) is too small.

The space between $dx$ and the bar is too small:
\startformula
\Bigl|\int_0^\pi\sin x\,dx\Bigr|,
\stopformula
Look at the $f$ and the bar:
\startformula
\Bigl|\int f\Bigr|
\stopformula
The $x$ seems to be outside the fraction:
\startformula
\frac{a^2}{1-x}
\stopformula
We add another one (in fact two) including $f$:
\startformula
f\Bigl(\frac{a+b}{2}\Bigr)
\stopformula

Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from $\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.

With $\delta_f$ and $\delta_g$, I think it looks like the space is too big, in particular between $\delta$ and $f$, but maybe that is a matter of taste.

\stopTEXpage
\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
___________________________________________________________________________________



--

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

Many thanks, Hans! This works well and it makes the font usable.

I will try to contact the TeX Gyre project to report this issue in the font.

/Mikael

I was too quick. Look at the distance between the integral sign and the limits in the attached example. Is there a way to fix that?

/Mikael

\definefontfeature[mathextra][collapseitalics=yes]
\setupbodyfont[bonum]

\setupmathematics[
integral=nolimits,
]

\startTEXpage
$\int_a^b f'(t)\,dt=f(b)-f(a)$
\startformula
\int_a^b f'(t)\,dt=f(b)-f(a)
\stopformula
\stopTEXpage