diff options
Diffstat (limited to 'tex/context/fonts/mkiv/stix-two-math.lfg')
-rw-r--r-- | tex/context/fonts/mkiv/stix-two-math.lfg | 60 |
1 files changed, 37 insertions, 23 deletions
diff --git a/tex/context/fonts/mkiv/stix-two-math.lfg b/tex/context/fonts/mkiv/stix-two-math.lfg index 8b03a7730..1f370359f 100644 --- a/tex/context/fonts/mkiv/stix-two-math.lfg +++ b/tex/context/fonts/mkiv/stix-two-math.lfg @@ -1,11 +1,10 @@ --- When set this will bypass the italic correction hackery! -local integral_variants = { bottomright = -0.4 } --- local integral_top = { topright = 0.05 } -local integral_bottom = { bottomright = -0.35 } - local common = fonts.goodies.load("common-math.lfg") local presets = common.mathematics.tweaks.presets +local integral_variants = { bottomright = -0.4 } +----- integral_top = { topright = 0.05 } +local integral_bottom = { bottomright = -0.35 } + return { name = "stix-two-math", version = "1.00", @@ -61,12 +60,35 @@ return { { tweak = "addmirrors", }, - presets.mathxitsarabic { rscale = 0.95 }, + -- MS: we need to check this, I moved it up { - tweak = "simplifykerns", + tweak = "replacealphabets", + list = { + { + source = "uppercasescript", + target = "uppercasecalligraphic", + }, + { + source = "uppercasescript", + target = "uppercasescript", + feature = "ss01", + }, + }, }, - presets.moveitalics { - correct = true + -- + presets.scripttocalligraphic { }, + presets.rsfstoscript { }, + presets.rsfsuprighttoscript { }, + presets.moderntocalligraphic { }, + presets.eulertocalligraphic { }, + presets.xitsarabic { rscale = 0.95 }, + presets.fallbacks { }, + presets.moveitalics { correct = true }, + presets.moveitalics { correct = true, letters = true }, + presets.moveintegrals { }, + presets.wipeitalics { }, + { + tweak = "simplifykerns", }, { tweak = "kerns", @@ -97,20 +119,6 @@ return { ["0x2233.variants.*"] = integral_variants, ["0x2233.parts.top"] = integral_top, ["0x2233.parts.bottom"] = integral_bottom, }, }, - { - tweak = "replacealphabets", - list = { - { - source = "uppercasescript", - target = "uppercasecalligraphic", - }, - { - source = "uppercasescript", - target = "uppercasescript", - feature = "ss01", - }, - }, - }, -- 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. @@ -197,6 +205,12 @@ return { } } }, + -- this is the mkiv section + { + tweak = "emulatelmtx", + feature = "emulatelmtx", + comment = "this is for mkiv", + }, }, }, bigslots = { |