summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-08-20 15:18:51 +0000
committerKarl Berry <karl@freefriends.org>2009-08-20 15:18:51 +0000
commita4b9e95309a563c5cf369f93add6957b76230bba (patch)
tree3058406da1107764b7da16fef8f2595ace785325 /Master/texmf-dist/source/context
parent6388e23b6e689f0b1b34eeb912d38a04e8640d44 (diff)
context-simplefonts update (8aug09)
git-svn-id: svn://tug.org/texlive/trunk@14779 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/context')
-rw-r--r--Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex57
1 files changed, 33 insertions, 24 deletions
diff --git a/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex b/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
index 63e535a8747..27f588f22a6 100644
--- a/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
+++ b/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
@@ -1,37 +1,46 @@
\usemodule[simplefonts][size=11pt]
-\setmainfont[Luxi Serif]
-\setmonofont[Luxi Mono]
+\setmainfont[DejaVu Serif]
+\setsansfont[DejaVu Sans]
+\setmonofont[DejaVu Sans Mono]
\starttext
-\starttyping
-\definefontcommand[<command>][<typeface>][..,..=..,..]
-\stoptyping
-
-\starttyping
-\definesubfontcommand[<command>][<fontgroup>][..,..=..,..]
-\stoptyping
+\title{The {\em simplefonts} module}
-\starttyping
-\definefontfamily[<command>[<font>][..,..=..,..]
-\stoptyping
+Writing typescripts for \ConTeXt\ can be a tedious job, …
\starttyping
\simplefont[<font>][..,..=..,..]
\stoptyping
-\starttyping
-\definefontcommand[\v!mainfont][\v!simplefonts][\c!style=\v!serif]
-\definefontcommand[\v!sansfont][\v!simplefonts][\c!style=\v!sans ]
-\definefontcommand[\v!monofont][\v!simplefonts][\c!style=\v!mono ]
-\definefontcommand[\v!mathfont][\v!simplefonts][\c!style=\v!math ]
-\stoptyping
-
-\starttyping
-\definesubfontcommand[\v!cjk\v!mainfont][\v!mainfont][\c!range={0x00400-0x2FA1F}]
-\definesubfontcommand[\v!cjk\v!sansfont][\v!sansfont][\c!range={0x00400-0x2FA1F}]
-\definesubfontcommand[\v!cjk\v!monofont][\v!monofont][\c!range={0x00400-0x2FA1F}]
-\stoptyping
+\startlines
+{\simplefont[TeX Gyre Pagella]TeX Gyre Pagella}
+{\simplefont[TeX Gyre Termes]TeX Gyre Termes}
+{\simplefont[TeX Gyre Heros]TeX Gyre Heros}
+{\simplefont[TeX Gyre Bonum]TeX Gyre Bonum}
+{\simplefont[TeX Gyre Schola]TeX Gyre Schola}
+{\simplefont[TeX Gyre Adventor]TeX Gyre Adventor}
+{\simplefont[TeX Gyre Cursor]TeX Gyre Cursor}
+{\simplefont[TeX Gyre Chorus]TeX Gyre Chorus}
+\stoplines
+
+\startluacode
+
+local styles = { "regular", "italic", "bold", "bolditalic" }
+
+tex.sprint(tex.ctxcatcodes,"\\starttabulate[|l|b{\\nohyphens}p|]")
+tex.sprint(tex.ctxcatcodes,"\\NC \\bf style \\NC\\bf extension \\NC\\NR")
+for _, style in global.ipairs(styles) do
+ tex.sprint(tex.ctxcatcodes,"\\NC " .. style .. "\\NC ")
+ for _, extension in global.ipairs(thirddata.simplefonts.extlist["normal"][style]) do
+ tex.sprint(tex.ctxcatcodes,extension .. " ")
+ global.print(extension)
+ end
+ tex.sprint(tex.ctxcatcodes," \\NC\\NR")
+end
+tex.sprint(tex.ctxcatcodes,"\\stoptabulate")
+
+\stopluacode
\stoptext