ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Kerning/italic correction problem with TeX Gyre Bonum font
@ 2018-03-10 18:10 Mikael P. Sundqvist
  2018-03-15 10:00 ` [SPAM] " Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-10 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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.

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

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

[-- Attachment #2: bonumbug.pdf --]
[-- Type: application/pdf, Size: 15295 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font
  2018-03-10 18:10 Kerning/italic correction problem with TeX Gyre Bonum font Mikael P. Sundqvist
@ 2018-03-15 10:00 ` Hans Hagen
  2018-03-15 20:24   ` Mikael P. Sundqvist
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2018-03-15 10:00 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font
  2018-03-15 10:00 ` [SPAM] " Hans Hagen
@ 2018-03-15 20:24   ` Mikael P. Sundqvist
  2018-03-15 21:06     ` Mikael P. Sundqvist
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-15 20:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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/list
>> info/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/list
> info/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

[-- Attachment #1.2: Type: text/html, Size: 5647 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font
  2018-03-15 20:24   ` Mikael P. Sundqvist
@ 2018-03-15 21:06     ` Mikael P. Sundqvist
  0 siblings, 0 replies; 4+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-15 21:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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/list
>>> info/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/list
>> info/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

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

[-- Attachment #2: bonumint.pdf --]
[-- Type: application/pdf, Size: 7347 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-15 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-10 18:10 Kerning/italic correction problem with TeX Gyre Bonum font Mikael P. Sundqvist
2018-03-15 10:00 ` [SPAM] " Hans Hagen
2018-03-15 20:24   ` Mikael P. Sundqvist
2018-03-15 21:06     ` Mikael P. Sundqvist

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