summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-22 23:52:51 +0000
committerKarl Berry <karl@freefriends.org>2009-07-22 23:52:51 +0000
commite79afc82069a887edd12a510c61edea9fafe2dc6 (patch)
tree99b5df1425e8bf5b824aae8bc6e27ee61c8aa231 /Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex
parent47e87a4d20a2f93fd498121b8d4bd9c8662356c7 (diff)
new context doc context-notes-zh-cn (6jul09)
git-svn-id: svn://tug.org/texlive/trunk@14390 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex')
-rw-r--r--Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex99
1 files changed, 99 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex b/Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex
new file mode 100644
index 00000000000..ce98d3cef9d
--- /dev/null
+++ b/Master/texmf-dist/doc/context/third/context-notes-zh-cn/src/zhfonts.tex
@@ -0,0 +1,99 @@
+% engine=luatex
+% \ctxlua{fonts.collections.trace = true}
+\definefontfeature[zh][mode=node,script=hang,lang=zhs]
+
+\starttypescript [serif] [zhfont]
+ \definefontsynonym [zhserif]
+ [AdobeSongStd-Light][features=zh]
+ \definefontsynonym [zhserifbold]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontsynonym [zhserifitalic][AdobeKaitiStd-Regular]
+ [features=zh]
+ \definefontsynonym [zhserifbolditalic]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontfallback[serifwhatever]
+ [lmroman10-regular][0x0000-0x0400][force=yes]
+ \definefontfallback[serifboldwhatever]
+ [lmroman10-bold][0x0000-0x0400][force=yes]
+ \definefontfallback[serifitalicwhatever]
+ [lmroman10-italic][0x0000-0x0400][force=yes]
+ \definefontfallback[serifbolditalicwhatever]
+ [lmroman10-bolditalic][0x0000-0x0400][force=yes]
+\stoptypescript
+
+\starttypescript [serif][zhfont][name]
+ \definefontsynonym[Serif]
+ [zhserif][fallbacks=serifwhatever]
+ \definefontsynonym[SerifBold]
+ [zhserifbold][fallbacks=serifboldwhatever]
+ \definefontsynonym[SerifItalic]
+ [zhserifitalic][fallbacks=serifitalicwhatever]
+ \definefontsynonym[SerifBoldItalic]
+ [zhserifbolditalic][fallbacks=serifbolditalicwhatever]
+\stoptypescript
+
+\starttypescript [sans][zhfont]
+ \definefontsynonym [zhsans]
+ [AdobeKaitiStd-Regular][features=zh]
+ \definefontsynonym [zhsansbold]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontsynonym [zhsansitalic]
+ [AdobeKaitiStd-Regular][features=zh]
+ \definefontsynonym [zhsansbolditalic]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontfallback[sanswhatever]
+ [lmsans10-regular][0x0000-0x0400][force=yes]
+ \definefontfallback[sansboldwhatever]
+ [lmsans10-Bold][0x0000-0x0400][force=yes]
+ \definefontfallback[sansitalicwhatever]
+ [lmsans10-italic][0x0000-0x0400][force=yes]
+ \definefontfallback[sansbolditalicwhatever]
+ [lmsans10-bolditalic][0x0000-0x0400][force=yes]
+\stoptypescript
+
+\starttypescript [sans][zhfont][name]
+ \definefontsynonym[Sans]
+ [zhsans][fallbacks=sanswhatever]
+ \definefontsynonym[SansBold]
+ [zhsansbold][fallbacks=sansboldwhatever]
+ \definefontsynonym[SansItalic]
+ [zhsansitalic][fallbacks=sansitalicwhatever]
+ \definefontsynonym[SansBoldItalic]
+ [zhsansbolditalic][fallbacks=sansbolditalicwhatever]
+\stoptypescript
+
+\starttypescript [mono][zhfont]
+ \definefontsynonym [zhmono]
+ [AdobeKaitiStd-Regular][features=zh]
+ \definefontsynonym [zhmonobold]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontsynonym [zhmonoitalic]
+ [AdobeKaitiStd-Regular][features=zh]
+ \definefontsynonym [zhmonobolditalic]
+ [AdobeHeitiStd-Regular][features=zh]
+ \definefontfallback[monowhatever]
+ [lmmono10-regular][0x0000-0x0400][force=yes]
+ \definefontfallback[monoboldwhatever]
+ [lmmonolt10-bold][0x0000-0x0400][force=yes]
+ \definefontfallback[monoitalicwhatever]
+ [lmmono10-italic][0x0000-0x0400][force=yes]
+ \definefontfallback[monobolditalicwhatever]
+ [lmmonolt10-boldoblique][0x0000-0x0400][force=yes]
+\stoptypescript
+
+\starttypescript [mono][zhfont][name]
+ \definefontsynonym[Mono]
+ [zhmono][fallbacks=monowhatever]
+ \definefontsynonym[MonoBold]
+ [zhmonobold][fallbacks=monoboldwhatever]
+ \definefontsynonym[MonoItalic]
+ [zhmonoitalic][fallbacks=monoitalicwhatever]
+ \definefontsynonym[MonoBoldItalic]
+ [zhmonobolditalic][fallbacks=monobolditalicwhatever]
+\stoptypescript
+
+\starttypescript[myfont]
+ \definetypeface[myfont][rm][serif][zhfont]
+ \definetypeface[myfont][ss][sans][zhfont]
+ \definetypeface[myfont][tt][mono][zhfont]
+\stoptypescript