I've made a font for testing on Kazuki's advice using AFDKO. You can download it from here: https://dl.dropboxusercontent.com/u/5807100/SourceHanSans-Medium-Reduced.ttc
If you compile the attached luaotfload_test.tex with plain-LuaTeX 0.81.0, you will get this error: <./SourceHanSans-Medium-Reduced.ttc(SourceHanSans-Medium:-1)Invalid TTC index number After applying the patch Kazuki submitted yesterday to fontloader, this source can be compiled correctly. Sincerely, Yusuke Terada
luaotfload_test.tex
Description: Binary data
> 2015/10/09 11:20、Kazuki Maeda <[email protected]> のメール: > > On Fri, 9 Oct 2015 00:03:29 +0200 > Hans Hagen <[email protected]> wrote: >>> You can use the Source Han Sans font for test because it is also >>> available in the OTC format. >>> >>> https://github.com/adobe-fonts/source-han-sans/releases >> >> those fonts work ok (at my end), the problem probably relates to >> filenames as well as fontnames in some non-latin encoding > > SourceHanSans-Medium.ttc has the following metadata: > > ... > ["fontname"]="SourceHanSans-Medium", > ... > > and four subfonts: > > (0): > ["postscriptname"]="SourceHanSans-Medium", > (1): > ["postscriptname"]="SourceHanSansK-Medium", > (2): > ["postscriptname"]="SourceHanSansSC-Medium", > (3): > ["postscriptname"]="SourceHanSansTC-Medium", > > In this case, ("postscriptname" of the subfont 0) == ("fontname" of > SourceHanSans-Medium.ttc). > Therefore, "Invalid TTC index number" error does not occur. > If you delete subfont 0 from the ttc, you may get the error. > > > Best regards > Kazuki Maeda
