summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/map/luatex/context/demo-font.lum
blob: 0beca031baad64e16fae1e812f3762cd367cf1c7 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
if not modules then modules = { } end modules ['demo-font.lum'] = {
    version   = 1.001,
    comment   = "companion to font-map.lua",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

--[[

    After some testing Taco and I decided that the lack of information
    with regards to unicode mapping of alternative shapes can best be
    handled by an auxiliary table. So, here is an example. This file
    gets its place in TDS in:

        <texroot>/fonts/map/luatex/context/demo-file.lum

    We recommend that you use a lowercase filename, just to prevent
    lookup errors. Font filenames are already such a mess.

    A test file, dedicated to Dohyun Kim is:

        \usemodule[fnt-20]

        \starttext

        \definefontfeature
          [otftracker-kozminprovi-regular]
          [mode=node,vrt2=yes,script=latn]

        \setvariables
          [otftracker]
          [font=kozminprovi-regular,
           sample=\char"3002]

        \stoptext

    In the resulting pdf file you will then find:

        begincmap
        /CIDSystemInfo
        << /Registry (TeX)
        /Ordering (FNUMTE-KozMinProVI-Regular)
        /Supplement 0
        >> def
        /CMapName /TeX-Identity-FNUMTE-KozMinProVI-Regular def
        /CMapType 2 def
        1 begincodespacerange
        <0000> <FFFF>
        endcodespacerange
        0 beginbfrange
        endbfrange
        2 beginbfchar
        <027B> <3002>
        <1ED0> <3002>
        endbfchar
        endcmap

    Of course this assumes that the font used is the same as we
    have on our machines.

]]--

return {
    version = 1.00,
    fontname = "kozminprovi-regular.otf",
    tounicode = {
        ["Japan1.7888"] = 0x3002,
    },
}