summaryrefslogtreecommitdiff
path: root/tex/context/fonts/mkiv/modern-math.lfg
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/fonts/mkiv/modern-math.lfg')
-rw-r--r--tex/context/fonts/mkiv/modern-math.lfg35
1 files changed, 24 insertions, 11 deletions
diff --git a/tex/context/fonts/mkiv/modern-math.lfg b/tex/context/fonts/mkiv/modern-math.lfg
index 509e5a7da..4c433702c 100644
--- a/tex/context/fonts/mkiv/modern-math.lfg
+++ b/tex/context/fonts/mkiv/modern-math.lfg
@@ -26,14 +26,22 @@ return {
DelimiterPercent = 90,
DelimiterShortfall = 400,
-- DisplayOperatorMinHeight = 1800, -- 1300 in font (only one)
- PrimeRaisePercent = 60,
- PrimeRaiseComposedPercent = 15,
- -- SubSuperscriptGapMin = 160, -- 160 in font
- SuperscriptBaselineDropMax = 250, -- 250 in font
- -- SuperscriptBottomMaxWithSubscript = 344, -- 344 in font
- -- SuperscriptBottomMin = 108, -- 108 in font
- SuperscriptShiftUp = 363, -- 363 in font
- SuperscriptShiftUpCramped = 89, -- 289 in font
+ -- SubSuperscriptGapMin = 160, -- 160 in font (4*ruleheight)
+ -- SubscriptBaselineDropMin = 50, -- 200 in font (multiplied by 0.59999/2.39868)
+ SubscriptShiftDown = 150, -- 247 in font (multiplied to be consistent with cm)
+ SubscriptShiftDownWithSuperscript = 247, -- relates to the previous one (see math-act)
+ -- SubscriptTopMax = 344, -- 344 in font .8 exheight
+ -- SuperscriptBaselineDropMax = 386, -- 250 in font (multiplied by 4.6333/2.99 (values in cm/values in lm)) 0 means: align the baseline of the superscript at the (top)
+ SuperscriptBaselineDropMax = 0.6*431, -- 250 in font (multiplied by 4.6333/2.99 (values in cm/values in lm))
+ SubscriptBaselineDropMin = 0.1*431, -- 200 in font
+ -- SuperscriptBottomMaxWithSubscript = 344, -- 344 in font .8 exheight
+ -- SuperscriptBottomMin = 108, -- 108 in font .25 exheight
+ SuperscriptShiftUp = 413, -- 363 in font (multiplied with 4.9547/4.3536, got 413)
+ SuperscriptShiftUpCramped = 413, -- 289 in font (no distinction, old TeX)
+ PrimeShiftUp = "1.1*SuperscriptShiftUp",
+ PrimeShiftUpCramped = "1.1*SuperscriptShiftUp",
+ -- PrimeRaisePercent = 0,
+ -- PrimeRaiseComposedPercent = 25,
},
tweaks = {
aftercopying = {
@@ -53,7 +61,7 @@ return {
presets.fallbacks { },
presets.moveitalics { correct = true },
presets.moveitalics { correct = true, letters = true },
- presets.moveintegrals { factor = 1.4 },
+ presets.moveintegrals { factor = 1.4, icfactor = 0.8 }, -- the icfactor is due to the very slanted integral.
presets.wipeanchors { },
presets.wipeitalics { },
-- these will become moveanchors
@@ -279,6 +287,8 @@ return {
[0x1D4B4] = { bottomright = -0.18, }, -- script Y
[0x1D4B5] = { bottomright = -0.05, }, -- script Z
--
+ [0x00393] = { bottomright = -0.20, }, -- upright Gamma
+ --
["0x7D.parts.top"] = { topright = -0.25 }, -- right brace top
["0x7D.parts.bottom"] = { bottomright = -0.25 }, -- right brace bottom
["0x7D.variants.*"] = { topright = -0.25, bottomright = -0.25 }, -- right brace variants
@@ -376,9 +386,9 @@ return {
},
{
tweak = "fixprimes",
- factor = 1.05,
+ factor = 0.825,
-- smaller = true,
- scale = 0.9,
+ -- scale = 1,
-- fake = 0.6,
},
{
@@ -411,6 +421,9 @@ return {
variant = 1,
},
{
+ tweak = "addprimed",
+ },
+ {
tweak = "addequals",
},
-- {