![Problema de fonte Noto CJK com LuaLaTeX](https://rvso.com/image/335474/Problema%20de%20fonte%20Noto%20CJK%20com%20LuaLaTeX.png)
Estou vendo o seguinte erro no final da primeira passagem quando tento criar meu documento:
</usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc(NotoSansCJKtc-Regular:3)
!LuaTeX error (file /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc): sfnt: table not found...
Este é o Ubuntu Xenial. Há algo que eu possa fazer para consertar isso?
Tenho notado algumas dúvidas relacionadas às fontes Noto e XeLaTeX. No entanto, estou usando LuaLaTeX, então abri esta nova pergunta.
ATUALIZAR
A versão é esta:
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)
Responder1
Embora NotoSansCJK-Regular.ttc
tenha uma .ttc
extensão, esta é na verdade uma fonte no formato Open Type Collection, como diz o Googleaqui. Suporte para formato OTC foi adicionado ao LuaTeX no LuaTeX beta-0.81.0 (por favor consulteRevisão 5330). Portanto, se você estiver usando uma versão mais antiga do LuaTeX (por exemplo, versão beta-0.80.0, que está no TeX Live 2015), você não poderá usar fontes OTC com LuaTeX.
Vamos considerar o seguinte arquivo:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{NotoSansCJK-Regular}
\begin{document}
Hello world.
\end{document}
Se eu compilar este arquivo com LuaTeX versão beta-0.80.0, LuaLaTeX apresentará um erro.
$ lualatex test.tex
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
restricted \write18 enabled.
# many logs here
!LuaTeX error (file ./NotoSansCJK-Regular.ttc): sfnt: table not found...
==> Fatal error occurred, no output PDF file produced!
Se eu compilar com LuaTeX Versão 0.95.0, funciona bem.
$ lualatex test.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
restricted system commands enabled.
# many logs here
Output written on test.pdf (1 page, 3558 bytes).
Transcript written on test.log
Esta é a saída (desculpe pelo Acrobat Reader japonês).