LuaLaTeX での Noto CJK フォントの問題

LuaLaTeX での Noto CJK フォントの問題

ドキュメントを作成しようとすると、最初のパスの最後に次のエラーが表示されます。

</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...

これは Ubuntu Xenial です。これを修正するために何かできることはありますか?

Noto フォントと XeLaTeX に関連するいくつかの質問に気づきました。ただし、私は LuaLaTeX を使用しているため、この新しい質問を作成しました。

アップデート

バージョンは次のとおりです:

This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)

答え1

NotoSansCJK-Regular.ttc拡張子はありますが.ttc、Googleが言うように、これは実際にはOpen Type Collection形式のフォントです。ここOTC形式のサポートはLuaTeXベータ0.81.0でLuaTeXに追加されました(リビジョン 5330したがって、古いバージョンの LuaTeX (例: TeX Live 2015 のバージョン beta-0.80.0) を使用している場合は、LuaTeX で OTC フォントを使用することはできません。

次のファイルを考えてみましょう。

\documentclass{article}
\usepackage{fontspec}
\setmainfont{NotoSansCJK-Regular}
\begin{document}
Hello world.
\end{document}

このファイルを LuaTeX バージョン beta-0.80.0 でコンパイルすると、LuaLaTeX でエラーが発生します。

$ 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!

LuaTeX バージョン 0.95.0 でコンパイルすると、正常に動作します。

$ 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

これが出力です(日本語のAcrobat Readerでは申し訳ありません)。

LuaTeX による OTC 埋め込み PDF

関連情報