20 Nov
2009
20 Nov
'09
12:51 p.m.
Yanrui Li wrote: > 2009/11/20 Wolfgang Schuster: >> Am 20.11.2009 um 11:45 schrieb Thomas A. Schmitz: >> >>> Hi Hans, all, >>> >>> the two latest betas have trouble loading fonts from my own typescripts. All errors point to the same line in font-syn.lua. I don't have a minimal example yet, but here's a minimal command line that triggers the error on my box: >>> >>> mtxrun --script fonts --list --pattern="*gentium*" >>> ...text/tex/texmf-context/tex/context/base/font-syn.lua:706: bad argument #1 to 'next' (table expected, got nil) >>> >>> Any pointers? >> 1. delete the luatex cache >> 2. luatools --selfupdate >> mtxrun --selfupdate >> 3. luatools --generate >> > > I did so and solved this problem. However I can not use Chinese OTF > fonts such as 'AdobeSongStd-Light.otf', because luatex need very very > large memory to load it in the stage of *enhancing* . This is a test > file: > > \definefont[song][name:adobesongstd] > \starttext > \song 测试 > \stoptext > > The process of compiling stops here: > > !load otf : loading: > /usr/share/fonts/adobe/AdobeSongStd-Light.otf (hash: > adobesongstd-light) > !load otf : file size: 16229772 > !load otf : enhancing ... that's only the first time ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------