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

Reply via email to