Continuing https://chat.stackexchange.com/rooms/97632/discussion-between-marcel-kruger-and-mdayq6, running lualatex on
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
% \setmathfont{texgyretermes-math.otf}
\setmathfont[Kerning=On]{TeXRygeTermesMath-Regular.otf}%%% same as Tex Gyre Termes Math, with an attempt to improve kerning
\begin{document}
\(\{f\}\)
\[
\{f\}
\]
\end{document}
where the font is taken from http://filebin.net/36gqo82z5evv2869 (our attempts to improve tex gyre termes math), produces
As we see, the kerning is applied in the first case but not in the second. What to do to get the proper kerning also in the second case?
Further, trying to reduce the kerning between f and } ends in nowhere: whichever value I enter into kern offset
, the resulting PDF is unchanged.
Any idea on how to adjust the kerning between f and }?
Last but not least, any idea of how to reduce the kerning in $\sigma_0$
and \[\sigma_0\]
using Fontforge? As of now, this kerning is enormously large...
EDIT: Following Marcel's suggestions, I abandoned the search for a good solution for {f}
and created a TeX Ryge Termes Math font with new kernings improving the right subscripts for italics \sigma
and \tau
in math mode. Let's consider the input
\documentclass{article}
\pagestyle{empty}
\usepackage{unicode-math}
%\setmathfont[Ligatures=TeX]{TeX Gyre Termes Math}
\setmathfont[Ligatures=TeX]{TeXRygeTermesMath-Regular.otf} %%% Name changed to comply with the license. The shapes are (hopefully) the same, and the math kernings are new.
\begin{document}
\newcommand{\test}[1]{#1_{abc} #1_0^a #1^b_b #1_1^c #1^d_β€ #1_β^e #1_T^f #1_k^g #1_{\mathup{k}}^h #1_{h}^j}
\newcommand{\testtest}{\test{\sigma}\test{\tau}}
\(\testtest\)
\[\testtest\]
\end{document}
With the original Gyre fonts, the above produces the output
for xelatex and
for lualatex.
When using the kerned Ryge fonts, we get
when compiled with xelatex and
when compiled with lulatex.
With the new Ryge font, xelatex
does a generally good job on kerning, and lualatex
does almost no job on kerning except the subscript "abc". Why so?
Further improvements deem necessary:
slightly increase the kerning for subscripts β€, π, and k of both π and π
slightly increase the kerning in
π_0
(but not inπ_0
)slightly decrease the kerning in
π_β
andπ_β
such that all the kernings still remain nonpositive.
After that, π^π
, π^π
, π^π
, and π^π
need small positive kernings.
Is it possible to do so on the font level?