Yanrui Li wrote:
Hi Hans,
I tried to use Chinese opentype fonts with luatex + plain fmt but I failed. Only with Chinese TTF fonts it can work.
This a simple example:
\pdfoutput=1 \font\myfont=AdobeSongStd-Light
\myfont 我想实现 LuaTeX 对中文的支持
\end
When I compiled it, I got the following messages:
This is LuaTeX, Version beta-0.41.0-2009051221 (Web2C 7.5.7) \write18 enabled. (tt.tex (luatex-basics.tex) (luatex-fonts.tex
) (luatex-mplib.tex) LuaTeX warning: lua-loaded font [51] (/usr/share/fonts/adobe/AdobeSongStd-Light .otf) has no characters! [1{/opt/context/tex/texmf/fonts/map/pdftex/plain/pdftex.map}] ){/opt/context/te x/texmf/fonts/enc/dvips/lm/lm-rep-cmrm.enc} Output written on tt.pdf (1 page, 17128 bytes). Transcript written on tt.log.
this is because a cidmap is needed and the kpse that you use does not have it; upcoming versions of kpse (and luatex's kpse lib) will support it given that you also adapted your texmf.cnf accordingly then so a bit patience is needed Hans (worls ok in mkiv because it follows a different route) ----------------------------------------------------------------- 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 -----------------------------------------------------------------