安装的字体 XeLaTex 存在问题

安装的字体 XeLaTex 存在问题

我在 XeLaTeX 编译的文档中使用以下字体https://www.whatfontis.com/FF_Pali.font

一切似乎都很好,直到我注意到当两个特定字符相邻时(即 AA、II),只会产生一个字母,上面有一条线。使用其他字体时不会发生这种情况,这表明字体存在问题。有没有人遇到过这种情况?你知道如何解决吗?报告和文章类中也会发生这种情况。

例子:

\documentclass[12pt]{book}
\usepackage{fontspec}
\setmainfont{Pali}

\begin{document}
\Huge AA II
\end{document}

日志档案:

This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./margin_test.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 22 language(s) loaded.
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/bk12.clo))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
)
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/tuenc.def))
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(./margin_test.aux) [1] (./margin_test.aux) )
Output written on margin_test.pdf (1 page).
SyncTeX written on margin_test.synctex.gz.
Transcript written on margin_test.log.

答案1

这种合法性值得怀疑的字体,定义了上下文连字符,以方便内观禅修协会,声称拥有版权。请参阅Pali.ot档案中包含的文件:

lookup ContextualLigatures {
sub A A -> Amacron; 
sub a a -> amacron; 
sub I I -> Imacron; 
sub i i -> imacron; 
sub U U -> Umacron; 
sub u u -> umacron; 
sub quotedbl S -> Sacute; 
sub quotedbl s -> sacute; 
sub period D -> Ddotbelow; 
sub period d -> ddotbelow; 
sub period H -> Hdotbelow; 
sub period h -> hdotbelow; 
sub period L L -> Ldotbelowmacron; 
sub period l l -> ldotbelowmacron; 
sub period L -> Ldotbelow; 
sub period l -> ldotbelow; 
sub quotedbl M -> Mdotaccent; 
sub quotedbl m -> mdotaccent; 
sub period M -> Mdotbelow; 
sub period m -> mdotbelow; 
sub asciitilde N -> Ntilde; 
sub asciitilde n -> ntilde; 
sub quotedbl N -> Ndotaccent; 
sub quotedbl n -> ndotaccent; 
sub period N -> Ndotbelow; 
sub period n -> ndotbelow; 
sub period R R -> Rdotbelowmacron; 
sub period r r -> rdotbelowmacron; 
sub period R -> Rdotbelow; 
sub period r -> rdotbelow; 
sub period S -> Sdotbelow; 
sub period s -> sdotbelow; 
sub period T -> Tdotbelow; 
sub period t -> tdotbelow; 
}

您可以关闭上下文连字(默认情况下处于打开状态)或使用 TeX Gyre Pagella(如果它适合您的需要)。

相关内容