diff options
Diffstat (limited to 'tex/context/fonts/mkiv/garamond-math.lfg')
-rw-r--r-- | tex/context/fonts/mkiv/garamond-math.lfg | 111 |
1 files changed, 87 insertions, 24 deletions
diff --git a/tex/context/fonts/mkiv/garamond-math.lfg b/tex/context/fonts/mkiv/garamond-math.lfg index bdbb6b155..7c1e7ab22 100644 --- a/tex/context/fonts/mkiv/garamond-math.lfg +++ b/tex/context/fonts/mkiv/garamond-math.lfg @@ -11,10 +11,11 @@ return { FractionRuleThickness = 60, OverbarRuleThickness = 60, UnderbarRuleThickness = 60, + AccentTopShiftUp = -75, + FlattenedAccentTopShiftUp = -75, + -- AccentExtendMargin = 50, -- AccentBaseHeight = 0, AccentBaseDepth = 75, - -- AccentTopShiftUp = -75, - -- FlattenedAccentTopShiftUp = -100, -- RadicalRuleThickness = 50, -- 50 in font DelimiterPercent = 90, DelimiterShortfall = 400, @@ -32,29 +33,29 @@ return { tweak = "dimensions", list = { -- offset width italic - -- [0x00060] = { yoffset = -0.1 }, -- grave - -- [0x000B4] = { yoffset = -0.1 }, -- acute - [0x002C6] = { yoffset = -0.1 }, -- hat - [0x002DC] = { yoffset = -0.1 }, -- tilde - -- [0x000AF] = { yoffset = -0.1 }, -- bar - [0x002D8] = { yoffset = -0.15 }, -- breve - [0x002D9] = { yoffset = -0.15 }, -- dot - -- [0x000A8] = { yoffset = -0.1 }, -- ddot - [0x020DB] = { yoffset = -0.115 }, -- dddot - [0x002C7] = { yoffset = -0.1 }, -- check - [0x020D7] = { yoffset = -0.1 }, -- vec + -- -- [0x00060] = { yoffset = -0.1 }, -- grave + -- -- [0x000B4] = { yoffset = -0.1 }, -- acute + -- [0x002C6] = { yoffset = -0.1 }, -- hat + -- [0x002DC] = { yoffset = -0.1 }, -- tilde + -- -- [0x000AF] = { yoffset = -0.1 }, -- bar + -- [0x002D8] = { yoffset = -0.15 }, -- breve + -- [0x002D9] = { yoffset = -0.15 }, -- dot + -- -- [0x000A8] = { yoffset = -0.1 }, -- ddot + -- [0x020DB] = { yoffset = -0.115 }, -- dddot + -- [0x002C7] = { yoffset = -0.1 }, -- check + -- [0x020D7] = { yoffset = -0.1 }, -- vec - [0x00300] = { yoffset = -0.12 , all = true }, -- widegrave - [0x00301] = { yoffset = -0.12 , all = true }, -- wideacute - [0x00302] = { yoffset = -0.12 , all = true }, -- widehat - [0x00303] = { yoffset = -0.12 , all = true }, -- widetilde - [0x00304] = { yoffset = -0.12 , all = true }, -- widebar - [0x00306] = { yoffset = -0.12 , all = true }, -- widebreve - [0x00307] = { yoffset = -0.12 , all = true }, -- widedot - [0x00308] = { yoffset = -0.12 , all = true }, -- wideddot - -- [0x020DB] = { yoffset = -0.1 , all = true }, -- widedddot - [0x0030A] = { yoffset = -0.12 , all = true }, -- widering - [0x0030C] = { yoffset = -0.12 , all = true }, -- widecheck + -- [0x00300] = { yoffset = -0.12 , all = true }, -- widegrave + -- [0x00301] = { yoffset = -0.12 , all = true }, -- wideacute + -- [0x00302] = { yoffset = -0.12 , all = true }, -- widehat + -- [0x00303] = { yoffset = -0.12 , all = true }, -- widetilde + -- [0x00304] = { yoffset = -0.12 , all = true }, -- widebar + -- [0x00306] = { yoffset = -0.12 , all = true }, -- widebreve + -- [0x00307] = { yoffset = -0.12 , all = true }, -- widedot + -- [0x00308] = { yoffset = -0.12 , all = true }, -- wideddot + -- -- [0x020DB] = { yoffset = -0.1 , all = true }, -- widedddot + -- [0x0030A] = { yoffset = -0.12 , all = true }, -- widering + -- [0x0030C] = { yoffset = -0.12 , all = true }, -- widecheck -- [0x002C6] = { scale =.85, yoffset = .1, width = .85, height = .935 }, -- hat @@ -147,6 +148,54 @@ return { ["0x27EB.variants.*"] = { topright = -0.2, bottomright = -0.2 }, }, }, + -- Accents are a mess. We migrate the extensibles from the combiners to the base accent + -- and then need to tweak the width (which is auto set because it was zero with a large + -- accent anchor offset). First we copy and fix. + { + tweak = "extendaccents", + }, + { + tweak = "fixaccents", + }, + -- First we set the dimensions of the initial accent which started out as zero but we want + -- a proper width. + { + tweak = "dimensions", + list = { + -- [0x00302] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widehat + -- [0x00303] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widetilde + -- [0x00306] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widebreve + -- [0x0030C] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widecheck + }, + }, + -- Then we deal with all offsets and heights in one go. So we treat the initial accent + -- as well as the variants here. + { + tweak = "dimensions", + list = { + -- here we want to apply to all + -- [0x00300] = { yoffset = -0.02, height = .95, all = true }, -- widegrave : 0x0060 + -- [0x00301] = { yoffset = -0.02, height = .95, all = true }, -- wideacute : 0x00B4 + -- [0x00302] = { yoffset = -0.03, height = .95, all = true }, -- widehat : 0x02C6 + -- [0x00303] = { yoffset = -0.02, height = .95, all = true }, -- widetilde : 0x02DC + -- [0x00306] = { yoffset = -0.03, height = .95, all = true }, -- widebre : 0x02D8 + -- [0x0030A] = { yoffset = 0.00, height = .95, all = true }, -- widering : 0x02DA + -- [0x0030C] = { yoffset = -0.03, height = .95, all = true }, -- widecheck : 0x02C7 + + -- [0x00304] = { yoffset = -0.05, height = .95, all = true }, -- widebar : 0x00AF + + -- [0x00307] = { yoffset = -0.03, height = .95, all = true }, -- widedot : 0x02D9 + -- [0x00308] = { yoffset = -0.03, height = .95, all = true }, -- wideddot : 0x00A8 + -- [0x020DB] = { yoffset = -0.015, height = .95, all = true }, -- widedddot : 0x20DB (self) + }, + }, + -- We now copy these to the not wide slots so that we can set these to stretch as well, + -- if only because it is less confusing and more consistent. + { + tweak = "copyaccents", + }, + -- So far for the accents. + { tweak = "fixprimes", scale = 0.9, @@ -166,6 +215,20 @@ return { { tweak = "addrules", }, + { + tweak = "addbars", + advance = 0.6, + }, + { + tweak = "addactuarian", + }, + { + tweak = "addequals", + }, + { + tweak = "addfourier", + variant = 1, + }, }, }, alternates = { |