[luatex] Luaotfload still cannot embed several new CJK fonts in Mac OS X 10.11 El Capitan
Yusuke Terada
taylorkgb at gmail.com
Fri Oct 9 06:04:48 CEST 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luaotfload_test.tex
Type: application/octet-stream
Size: 95 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20151009/b5669254/attachment.obj>
-------------- next part --------------
> 2015/10/09 11:20?Kazuki Maeda <kmaeda at kmaeda.net> ?????
>
> 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