![指定数学字体的字距](https://linux22.com/image/417231/%E6%8C%87%E5%AE%9A%E6%95%B0%E5%AD%A6%E5%AD%97%E4%BD%93%E7%9A%84%E5%AD%97%E8%B7%9D.png)
我想手动修复拉丁现代数学中某些大写字母对(例如 UF 和 YX)之间长期存在的间距问题。由于这些字母对代表实际乘积,因此我不想\mathit{UF}
每次都这样写。以下是我的尝试:
\documentclass{article}
\usepackage{unicode-math}
\directlua{
fonts.handlers.otf.addfeature {
name = "lmkern",
type = "kern",
data = {
[0x1D434] = { [0x1D435] = -100 },
[0x1D448] = { [0x1D439] = -100 },
[0x1D44C] = { [0x1D44B] = -100 }
}
}
}
\setmathfont[RawFeature=+lmkern]{Latin Modern Math}
\begin{document}
\showoutput
$AB_{AB}$\quad$UF_{UF}$\quad$YX_{YX}$
\end{document}
输出的相关位是:
....\TU/LatinModernMath(1)/m/n/10