Yue Wang wrote:
here is the xelatex result given by a chinese user:
\documentclass{minimal} \usepackage{xeCJK} \setCJKfamilyfont{song}{SimSun} \begin{document} {hello {\CJKfamily{song}你好}}\par % 10000 lines \end{document}
got 209 pages, three seconds to run. note he is switching families 20000 times. (\family{foo} in latex == \switchbodyfont[foo] in context)
hard to say ... it all depends on how a bodyfont (or typeface) is defined, how many real fontsa re involved etc; normally, when using a typeface definition a bodyfont switch is rather efficient as it only involves one namespace switch + one font switch but when extensive math definitions are also involved it might take a few more cycles anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify fonts so i will not look into the code till that gets fixed first Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------