summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/fonts/demo.lfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/fonts/demo.lfg')
-rw-r--r--Master/texmf-dist/tex/context/fonts/demo.lfg52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/fonts/demo.lfg b/Master/texmf-dist/tex/context/fonts/demo.lfg
new file mode 100644
index 00000000000..6c7f6b62d39
--- /dev/null
+++ b/Master/texmf-dist/tex/context/fonts/demo.lfg
@@ -0,0 +1,52 @@
+local yes = "yes"
+
+local default = {
+ analyze = yes,
+ mode = "node",
+ language = "dflt",
+ script = "dflt",
+}
+
+local smallcaps = {
+ smcp = yes,
+}
+
+local function statistics(tfmdata)
+ commands.showfontparameters
+end
+
+local function squeeze(tfmdata)
+ for k, v in next, tfmdata.characters do
+ v.height = 0.75 * (v.height or 0)
+ v.depth = 0.75 * (v.depth or 0)
+ end
+end
+
+return {
+ name = "demo",
+ version = "1.00",
+ comment = "An example of goodies.",
+ author = "Hans Hagen",
+ featuresets = {
+ default = {
+ default,
+ },
+ smallcaps = {
+ default, smallcaps,
+ },
+ },
+ colorschemes = {
+ default = {
+ [1] = {
+ "one", "three", "five", "seven", "nine",
+ },
+ [2] = {
+ "two", "four", "six", "eight", "ten",
+ },
+ }
+ },
+ postprocessors = {
+ statistics = statistics,
+ squeeze = squeeze,
+ },
+}