Chinese TTC fonts can not be loaded with the beta (2011.02.11)
Hi, For this example with simsun.ttc (it can be download from http://www.slax.org/modules.php?action=detail&id=2630): \definefont[song][name:nsimsun] \starttext \song 测试 \stoptext ConTeXt MkIV said: fonts > fallback modern rm 12pt is loaded system > begin file b at line 3 fonts > otf loading > loading: selfautoparent:texmf-local/fonts/truetype/winfonts/simsun.ttc (hash: simsun-nsimsun) fonts > otf loading > font loaded okay fonts > otf loading > loading failed (file read error) fonts > defining > forced type ttc of simsun not found I have tested the uming.ttc (AR PL UMing, it can be download from http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download) and got the same error. -- Best regards, Li Yanrui
2011/2/13 Li Yanrui (李延瑞)
Hi,
For this example with simsun.ttc (it can be download from http://www.slax.org/modules.php?action=detail&id=2630):
\definefont[song][name:nsimsun] \starttext \song 测试 \stoptext
ConTeXt MkIV said:
fonts > fallback modern rm 12pt is loaded system > begin file b at line 3 fonts > otf loading > loading: selfautoparent:texmf-local/fonts/truetype/winfonts/simsun.ttc (hash: simsun-nsimsun) fonts > otf loading > font loaded okay fonts > otf loading > loading failed (file read error) fonts > defining > forced type ttc of simsun not found
I have tested the uming.ttc (AR PL UMing, it can be download from http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download) and got the same error.
-- Best regards,
Li Yanrui
i wanted to load a ttc at one point, too, and failed. i found beer http://www.eonet.ne.jp/%7Ehirotsu/myware.html, a free software collection, and ported it’s ttc2ttf tool to python (as a challenge). you can find my port here http://pastebin.com/QXcAtP24, but it doesn’t get the magic numbers right. it works for me, though.
2011/2/13 Philipp A.
i wanted to load a ttc at one point, too, and failed.
i found beer, a free software collection, and ported it’s ttc2ttf tool to python (as a challenge).
you can find my port here, but it doesn’t get the magic numbers right. it works for me, though.
In fact the ttc fonts can be loaded and used in the beta before 2011.02.11. For extracting ttf from ttc you can also use fontforge. -- Best regards, Li Yanrui
On 02/14/2011 01:40 AM, Li Yanrui (李延瑞) wrote:
2011/2/13 Philipp A.
: i wanted to load a ttc at one point, too, and failed.
i found beer, a free software collection, and ported it’s ttc2ttf tool to python (as a challenge).
you can find my port here, but it doesn’t get the magic numbers right. it works for me, though.
In fact the ttc fonts can be loaded and used in the beta before 2011.02.11. For extracting ttf from ttc you can also use fontforge.
This and the problem with the Symbola otf are just bugs. Using fontforge is possible, but really ConTeXt should be fixed. Best wishes, Taco
participants (3)
-
Li Yanrui (李延瑞)
-
Philipp A.
-
Taco Hoekwater