[luatex] Luaotfload still cannot embed several new CJK fonts in Mac OS X 10.11 El Capitan

Kazuki Maeda kmaeda at kmaeda.net
Fri Oct 9 04:20:29 CEST 2015


On Fri, 9 Oct 2015 00:03:29 +0200
Hans Hagen <pragma at wxs.nl> 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


More information about the luatex mailing list