# [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

Hans Hagen pragma at wxs.nl
Thu Mar 15 11:00:37 CET 2018

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

--

-----------------------------------------------------------------