summaryrefslogtreecommitdiff
path: root/tex/context/fonts/mkiv/lm.lfg
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/fonts/mkiv/lm.lfg')
-rw-r--r--tex/context/fonts/mkiv/lm.lfg25
1 files changed, 22 insertions, 3 deletions
diff --git a/tex/context/fonts/mkiv/lm.lfg b/tex/context/fonts/mkiv/lm.lfg
index 1d81e0b77..355b583d1 100644
--- a/tex/context/fonts/mkiv/lm.lfg
+++ b/tex/context/fonts/mkiv/lm.lfg
@@ -1,6 +1,9 @@
-- In order to be able to use beta math fonts, we use our own file name and
-- always remap.
+local common = fonts.goodies.load("common-math.lfg")
+local presets = common.mathematics.tweaks.presets
+
local dimensions, kerns if CONTEXTLMTXMODE == 0 then
local kern_150 = { bottomright = { { kern = -150 } } }
@@ -76,8 +79,14 @@ return {
DelimiterPercent = 90,
DelimiterShortfall = 400,
-- DisplayOperatorMinHeight = 1800, -- 1300 in font (only one)
- PrimeRaisePercent = 60, -- 50 default
- PrimeRaiseComposedPercent = 15, -- 25 default
+ 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
},
tweaks = {
aftercopying = {
@@ -86,6 +95,13 @@ return {
expected = "Version 1.958",
},
{
+ tweak = "addmirrors",
+ },
+ presets.matheulercalligraphic { rscale = 1 },
+ presets.mathrsfscript { rscale = 1 },
+ presets.mathxitsarabic { rscale = 0.88 },
+ presets.moveitalics { correct = true },
+ {
tweak = "dimensions",
list = {
-- [0x00060] = { yoffset = -0.05 }, -- grave
@@ -447,7 +463,7 @@ return {
-- "lowercasedoublestruck",
-- "lowercasefraktur",
"lowercasemonospace",
- "lowercasenormal",
+ -- "lowercasenormal",
-- "lowercasesansserifbold",
-- "lowercasesansserifnormal",
-- "lowercasegreeknormal",
@@ -551,6 +567,9 @@ return {
tweak = "fixradicals",
},
{
+ tweak = "addprivates",
+ },
+ {
tweak = "addscripts",
},
{