xetex doesn't handle a devanagari font correctly
MiKTeX source code moved to GitHub
Brought to you by:
csc
This problem as been also discussed at tex.SX:
http://tex.stackexchange.com/questions/257862/problem-with-r-ligatures-in-xetex-with-the-font-sanskrit-2003
When running this document
\documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari]{Nakula} \setsansfont[Script=Devanagari]{Sanskrit 2003} \begin{document} किकर्त \sffamily किकर्त \end{document}
I get a different output with miktex then with texlive for the Sanskrit font (which I downloaded from http://www.omkarananda-ashram.org/Sanskrit/sanskrit2003.zip). The second "hook" is at the wrong place:
I don't know anything about this scripts, so I don't know what could be causing this. Perhaps miktex-xetex has been compiled with other versions of the libraries. In texlive xetex --version
reports this
XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX) kpathsea version 6.2.1 Copyright 2015 SIL International, Jonathan Kew and Khaled Hosny. There is NO warranty. Redistribution of this software is covered by the terms of both the XeTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the XeTeX source. Primary author of XeTeX: Jonathan Kew. Compiled with ICU version 55.1; using 55.1 Compiled with zlib version 1.2.8; using 1.2.8 Compiled with FreeType2 version 2.5.5; using 2.5.5 Compiled with Graphite2 version 1.2.4; using 1.2.4 Compiled with HarfBuzz version 0.9.40; using 0.9.40 Compiled with libpng version 1.6.17; using 1.6.17 Compiled with poppler version 0.32.0 Compiled with fontconfig version 2.11.93; using 2.11.93
I cannot repoduce this (see my screenshot).
I'm using this:
http://www.sanskritweb.net/itrans/sans2003.zip
and this:
http://bombay.indology.info/software/fonts/devanagari/nakula.ttf
The "faulty" font on the right (Sanskrit 2003) is in my example this one:
http://www.omkarananda-ashram.org/Sanskrit/sanskrit2003.zip
nakulla works fine.
I tried on another PC: Your sanscrit2003.ttf works fine, "mine" works in TL2015 but fails in miktex. There is something in it that the miktex-xetex doesn't like.
miktex-xetex uses older library versions:
Graphite2 version 1.2.1
HarfBuzz version 0.9.17
fontconfig 2.10.2
I will upgrade these libraries.
MiKTEX xetex now uses the latest library versions (see miktex-xetex --version), i.e., the problem should be solved now.