summaryrefslogtreecommitdiff
path: root/tex/context/fonts/demo.lfg
blob: 6c7f6b62d3991c84fd5bd557fe11e37c5b913c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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,
    },
}