lucida-opentype-math.lfg /size: 2130 b    last modification: 2020-07-01 14:35
1----- kern_250 = { bottomright = { { kern = -250 } }, force = true }
2
3-- RadicalVerticalGap             =  50
4-- RadicalDisplayStyleVerticalGap = 175
5
6-- RadicalVerticalGap             = 166
7-- RadicalDisplayStyleVerticalGap = 345
8
9local function FixRadicalDisplayStyleVerticalGap(value,target,original)
10    local o = original.mathparameters.RadicalVerticalGap -- 50
11    return 2 * o * target.parameters.factor
12end
13
14return {
15    name = "lucida-opentype-math",
16    version = "1.00",
17    comment = "Goodies that complement lucida opentype.",
18    author = "Hans Hagen",
19    copyright = "ConTeXt development team",
20    mathematics = {
21        parameters = {
22            RadicalDisplayStyleVerticalGap = FixRadicalDisplayStyleVerticalGap,
23        },
24        alternates = {
25            italic       = { feature = 'ss01', value = 1, comment = "Mathematical Alternative Lowercase Italic" },
26            arrow        = { feature = 'ss02', value = 1, comment = "Mathematical Alternative Smaller Arrows" },
27            operator     = { feature = 'ss03', value = 1, comment = "Mathematical Alternative Smaller Operators" },
28            calligraphic = { feature = 'ss04', value = 1, comment = "Mathematical Alternative Calligraphic Characters" },
29            zero         = { feature = 'ss05', value = 1, comment = "Mathematical Alternative Zero" },
30            partial      = { feature = 'ss20', value = 1, comment = "Mathematical Alternative Upright Partial Differential" },
31        },
32     -- kerns = {
33     --     [0x1D449] = kern_250, --
34     --     [0x1D44A] = kern_250, -- 𝑊
35     -- },
36        dimensions = {
37            default = { -- experimental values
38                [0x02044] = { xoffset = 275, width = 600 },
39                -- primes
40                [0xFE932] = { width =  200 },
41                [0xFE933] = { width =  500 },
42                [0xFE934] = { width =  800 },
43                [0xFE935] = { width = 1100 },
44                -- reverse primes
45                [0xFE935] = { width =  200 },
46                [0xFE936] = { width =  500 },
47                [0xFE937] = { width =  800 },
48            },
49        },
50    },
51}
52