diff options
Diffstat (limited to 'tex/context/fonts/mkiv/ebgaramond-math.lfg')
-rw-r--r-- | tex/context/fonts/mkiv/ebgaramond-math.lfg | 170 |
1 files changed, 18 insertions, 152 deletions
diff --git a/tex/context/fonts/mkiv/ebgaramond-math.lfg b/tex/context/fonts/mkiv/ebgaramond-math.lfg index 43bafadd1..d5d31c73f 100644 --- a/tex/context/fonts/mkiv/ebgaramond-math.lfg +++ b/tex/context/fonts/mkiv/ebgaramond-math.lfg @@ -9,28 +9,21 @@ return { copyright = "ConTeXt development team", mathematics = { parameters = { - -- NoLimitSupFactor = 0, - -- NoLimitSubFactor = 1200, - FractionRuleThickness = 60, - OverbarRuleThickness = 60, - UnderbarRuleThickness = 60, - AccentTopShiftUp = -75, - FlattenedAccentTopShiftUp = -75, - -- AccentExtendMargin = 50, - -- AccentBaseHeight = 0, - AccentBaseDepth = 75, - -- RadicalRuleThickness = 50, -- 50 in font - DelimiterPercent = 90, - DelimiterShortfall = 400, + FractionRuleThickness = 60, + OverbarRuleThickness = 60, + UnderbarRuleThickness = 60, + AccentTopShiftUp = -75, + FlattenedAccentTopShiftUp = -75, + AccentBaseDepth = 75, + DelimiterPercent = 90, + DelimiterShortfall = 400, SubscriptShiftDown = 200, -- 250 in font SuperscriptShiftUp = 400, -- 430 in font SubscriptShiftDownWithSuperscript = "1.25*SubscriptShiftDown", -- trial and error SubSuperscriptGapMin = 200, -- 250 in font - -- DisplayOperatorMinHeight = 1800, -- 1300 in font (only one) - -- PrimeRaisePercent = 0, -- set to 0 in math-act - -- PrimeRaiseComposedPercent = 25, -- set to 0 in math-act - PrimeShiftUp = "1.2*SuperscriptShiftUp", - PrimeShiftUpCramped = "1.2*SuperscriptShiftUp", + PrimeShiftUp = "1.2*SuperscriptShiftUp", + PrimeShiftUpCramped = "1.2*SuperscriptShiftUp", + PrimeBaselineDropMax = "0.5*SuperscriptBaselineDropMax", }, tweaks = { aftercopying = { @@ -40,10 +33,7 @@ return { }, { tweak = "fixprimes", - -- scale = 1, - -- smaller = true, factor = 0.73, - -- fake = 0.75, }, { tweak = "addmirrors", @@ -71,7 +61,6 @@ return { { tweak = "dimensions", list = { - -- for older entries, see bottom of file [0x1D453] = { width = 1.1 }, -- italic f }, }, @@ -142,10 +131,6 @@ return { [mathematics.tweaks.subsets.f] = -.25, [0x1D70C] = -.25, -- italic \rho }, - -- ["uppercaseitalic"] = { - -- [mathematics.tweaks.subsets.f] = -.25, - -- [0x1D70C] = -.25, -- italic \rho - -- }, }, }, -- Accents are a mess. We migrate the extensibles from the combiners to the base accent @@ -153,60 +138,17 @@ return { -- accent anchor offset). First we copy and fix. { tweak = "extendaccents", - -- all = true, --- all = 5, }, -{ - tweak = "radicaldegreeanchors", - list = { - -- [0x221A] = { location = "left", hfactor = .1, vfactor = .3 }, - -- ["0x221A.variants.*"] = { location = "left", hfactor = .1, vfactor = .625 }, - -- ["0x221A.variants.1"] = { location = "left", hfactor = .1, vfactor = .575 }, - -- ["0x221A.variants.2"] = { location = "left", hfactor = .1, vfactor = .575 }, - -- ["0x221A.variants.3"] = { location = "left", hfactor = .1, vfactor = .55 }, - -- ["0x221A.variants.4"] = { location = "left", hfactor = .1, vfactor = .55 }, - -- ["0x221A.variants.5"] = { location = "left", hfactor = .1, vfactor = .55 }, - -- ["0x221A.variants.5"] = { location = "left", hfactor = .1, vfactor = .55 }, - -- ["0x221Aq.variants.6"] = { location = "left", hfactor = .1, vfactor = .55 }, - -- ["0x221A.parts.top"] = { location = "left", hfactor = .1, vfactor = 5.5 }, -- keep commented: bottom wins over top - ["0x221A.parts.bottom"] = { location = "left", hfactor = .0, vfactor = 1.0 }, - } -}, - -- { - -- tweak = "fixanchors", - -- }, - -- 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 - }, + tweak = "radicaldegreeanchors", + list = { + ["0x221A.parts.bottom"] = { location = "left", hfactor = .0, vfactor = 1.0 }, + } }, + -- First we set the dimensions of the initial accent which started out as zero but we want + -- a proper width. None in ebgaramond. -- 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) - }, - }, + -- as well as the variants here. None in ebgaramond -- 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. { @@ -267,79 +209,3 @@ return { }, }, } - --- For now we keep these commented as they show where we came from. - --- { --- 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 - --- -- [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 --- [0x00393] = { xoffset = 0.05, width = 1.05, italic = 0.075 }, -- \Gamma --- -- [0x003A6] = { xoffset = 0.05, width = 1.05, italic = 0 }, -- \Phi difficult! --- [0x003A8] = { xoffset = 0.05, width = 1.05, italic = 0.075 }, -- \Psi --- [0x02113] = { width = 1, italic = 0.075 }, -- \ell --- [0x1D436] = { width = 1, italic = 0.05 }, -- C --- [0x1D43D] = { xoffset = 0.3, width = 1.4, italic = 0.1 }, -- J --- [0x1D44B] = { width = 1, italic = 0.05 }, -- X --- [0x1D44F] = { width = 1, italic = 0, }, -- b --- [0x1D450] = { width = 1.1, italic = 0 }, -- c --- [0x1D451] = { width = 1, italic = 0.05, }, -- d --- [0x1D452] = { width = 1.1, italic = 0.05 }, -- e --- [0x00066] = { width = 1.4, italic = 0.0, }, -- f --- [0x1D453] = { xoffset = 0.15, width = 1.15, italic = 0.1, }, -- f --- [0x1D454] = { xoffset = 0.1, width = 1.2, italic = 0.1 }, -- g --- [0x0210E] = { width = 1.1, italic = 0, }, -- h --- [0x1D457] = { xoffset = 0.2, width = 1.25, italic = 0.05 }, -- j --- [0x1D458] = { width = 1, italic = 0, }, -- k --- [0x1D459] = { width = 1, italic = 0.05 }, -- l --- [0x1D45D] = { xoffset = 0.15, width = 1.15, italic = 0, }, -- p --- [0x1D45E] = { width = 1.05, italic = 0 }, -- q --- [0x1D45F] = { width = 1.05, italic = 0 }, -- r --- [0x1D461] = { width = 1, italic = 0.1 }, -- t --- [0x1D465] = { xoffset = 0.05, width = 1.1, italic = 0.05 }, -- x --- [0x1D466] = { xoffset = 0.2, width = 1.2, italic = 0, }, -- y --- [0x1D6FD] = { xoffset = 0.05, width = 1.1, italic = 0.05 }, -- \beta --- [0x1D6FE] = { width = 1.05, italic = 0 }, -- \gamma --- [0x1D6FF] = { width = 1, italic = 0.1 }, -- \delta --- [0x1D716] = { width = 1.1, italic = 0 }, -- \epsilon --- [0x1D700] = { width = 1.1, italic = 0 }, -- \varepsilon --- [0x1D701] = { width = 1, italic = 0.15 }, -- \zeta --- [0x1D703] = { width = 1, italic = 0.1 }, -- \theta --- [0x1D705] = { width = 1, italic = 0.1 }, -- \kappa --- [0x1D706] = { xoffset = 0.05, width = 1.1, italic = 0 }, -- \lambda --- [0x1D707] = { xoffset = 0.05, width = 1.05, italic = 0 }, -- \mu --- [0x1D708] = { width = 1.1, italic = 0 }, -- \nu --- [0x1D709] = { width = 1.1, italic = 0 }, -- \xi --- [0x1D70B] = { width = 1.05, italic = 0 }, -- \pi --- [0x1D70C] = { xoffset = 0.2, width = 1.2, italic = 0 }, -- \rho --- [0x1D70E] = { width = 1, italic = 0.1 }, -- \sigma --- [0x1D70F] = { xoffset = 0.05, width = 1.05, italic = 0.1 }, -- \tau --- [0x1D712] = { xoffset = 0.15, width = 1.2, italic = 0.05 }, -- \chi --- [0x1D713] = { xoffset = 0.05, width = 1.05, italic = 0.05 }, -- \psi --- }, --- }, |