Am 12.05.2009 um 11:09 schrieb Yue Wang:
Hi,
Sum up:
define a font usng typescripts takes 64.797 seconds.
You can speed it up when you replace \definetypeface (...) with
\definefont:
\unprotect
\definefontsynonym [ZhSerif] [name:AdobeSongStd-Light]
\definefont [ZhSerifRegular] [ZhSerif]
\definefontsynonym [ZhSerifBold] [name:AdobeHeitiStd-Regular]
\definefont [ZhSerifBold] [ZhSerifBold]
\definefontsynonym [ZhSerifItalic] [name:AdobeKaitiStd-Regular]
\definefont [ZhSerifItalic] [ZhSerifItalic]
\definefontsynonym [ZhSerifBoldItalic] [name:AdobeHeitiStd-Regular]
\definefont [ZhSerifBoldItalic] [ZhSerifBoldItalic]
\definefontsynonym [ZhSans] [name:AdobeKaitiStd-Regular]
\definefont [ZhSansRegular] [ZhSans]
\definefontsynonym [ZhSansBold] [name:AdobeHeitiStd-Regular]
\definefont [ZhSansBold] [ZhSansBold]
\definefontsynonym [ZhSansItalic] [name:AdobeKaitiStd-Regular]
\definefont [ZhSansItalic] [ZhSansItalic]
\definefontsynonym [ZhSansBoldItalic] [name:AdobeHeitiStd-Regular]
\definefont [ZhSansBoldItalic] [ZhSansBoldItalic]
\definefontsynonym [ZhMono] [name:AdobeFangsongStd-Regular]
\definefont [ZhMonoRegular] [ZhMono]
\definefontsynonym [ZhMonoBold] [name:AdobeHeitiStd-Regular]
\definefont [ZhMonoBold] [ZhMonoBold]
\definefontsynonym [ZhMonoItalic] [name:AdobeFangsongStd-Regular]
\definefont [ZhMonoItalic] [ZhMonoItalic]
\definefontsynonym [ZhMonoBoldItalic] [name:AdobeHeitiStd-Regular]
\definefont [ZhMonoBoldItalic] [ZhMonoBoldItalic]
\def\domyzhfont{\getvalue{Zh\fontstringA\fontstylesuffix}}
%\def\myzhfont{\groupedcommand{\pushcurrentfont\domyzhfont}
{\popcurrentfont}}
\def\myzhfont{\domyzhfont}
\protect
\starttext
\rm\tf hello {\myzhfont 你好} world\par
\rm\it hello {\myzhfont 你好} world\par
\rm\bf hello {\myzhfont 你好} world\par
\rm\bi hello {\myzhfont 你好} world\par
\blank
\ss\tf hello {\myzhfont 你好} world\par
\ss\it hello {\myzhfont 你好} world\par
\ss\bf hello {\myzhfont 你好} world\par
\ss\bi hello {\myzhfont 你好} world\par
\blank
\tt\tf hello {\myzhfont 你好} world\par
\tt\it hello {\myzhfont 你好} world\par
\tt\bf hello {\myzhfont 你好} world\par
\tt\bi hello {\myzhfont 你好} world\par
\page
\dorecurse{1000}{\dorecurse{10}{ hello {\myzhfont 你好}}\par}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________