diff options
Diffstat (limited to 'tex/context/fonts/mkiv/termes-math.lfg')
-rw-r--r-- | tex/context/fonts/mkiv/termes-math.lfg | 91 |
1 files changed, 41 insertions, 50 deletions
diff --git a/tex/context/fonts/mkiv/termes-math.lfg b/tex/context/fonts/mkiv/termes-math.lfg index 6a54535df..6e3eb9306 100644 --- a/tex/context/fonts/mkiv/termes-math.lfg +++ b/tex/context/fonts/mkiv/termes-math.lfg @@ -1,28 +1,9 @@ -local dimensions, kerns if CONTEXTLMTXMODE == 0 then - - -- local kern_V = { bottomright = { { kern = -200 } } } - -- local kern_W = { bottomright = { { kern = -100 } } } - -- local offset_f = { xoffset = "llx" } - -- - -- dimensions = { - -- default = { - -- [0x1D453] = offset_f, -- 𝑓 - -- }, - -- } - -- - -- kerns = { - -- [0x1D449] = kern_V, -- 𝑉 - -- [0x1D44A] = kern_W, -- 𝑊 - -- } - -end +local common = fonts.goodies.load("common-math.lfg") +local presets = common.mathematics.tweaks.presets local integral_variants = { bottomright = -0.20 } local integral_bottom = { bottomright = -0.30 } -local common = fonts.goodies.load("common-math.lfg") -local presets = common.mathematics.tweaks.presets - return { name = "termes-math", version = "1.00", @@ -61,10 +42,17 @@ return { { tweak = "addmirrors", }, - presets.matheulercalligraphic { rscale = 0.95 }, - presets.mathrsfscript { rscale = 0.95 }, - presets.mathxitsarabic { rscale = 0.88 }, - presets.moveitalics { correct = true }, + presets.scripttocalligraphic { }, + presets.rsfstoscript { rscale = 0.97 }, + presets.rsfsuprighttoscript { rscale = 0.97 }, + presets.moderntocalligraphic { rscale = 0.97 }, + presets.eulertocalligraphic { rscale = 0.97 }, + presets.xitsarabic { rscale = 0.88 }, + presets.fallbacks { }, + presets.moveitalics { correct = true }, + presets.moveitalics { correct = true, letters = true }, + presets.moveintegrals { factor = 1.5 }, + presets.wipeitalics { }, { tweak = "kerns", list = { @@ -165,6 +153,12 @@ return { tweak = "addfourier", variant = 1, }, + -- this is the mkiv section + { + tweak = "emulatelmtx", + feature = "emulatelmtx", + comment = "this is for mkiv", + }, }, }, bigslots = { @@ -173,32 +167,29 @@ return { alternates = { dotless = { feature = 'dtls', value = 1, comment = "Mathematical Dotless Forms" }, }, - -- - -- experimental fixes for mkiv: - -- - dimensions = dimensions, - kerns = kerns, }, } +-- For now we keep these commented as they show where we came from. - -- Do a testrun with hats on these: - -- { - -- tweak = "dimensions", - -- list = { - -- [0x1D44F] = { width = 1, italic = 0, anchor = 1.3 }, -- b - -- [0x1D451] = { width = 1, italic = 0, anchor = 0.8 }, -- d - -- [0x1D452] = { width = 1, italic = 0, anchor = 0.9 }, -- e - -- [0x0210E] = { width = 1, italic = 0, anchor = 1.3 }, -- h - -- [0x1D458] = { width = 1, italic = 0, anchor = 1.3 }, -- k - -- [0x1D453] = { xoffset = 0.6, width = 1.4, italic = 1.2, anchor = 1.5 }, -- f - -- [0x1D457] = { xoffset = 0.5, width = 1.3, italic = 1.7 }, -- j - -- [0x1D45D] = { xoffset = 0.15, width = 1.15, italic = 0, anchor = 1.4 }, -- p - -- [0x1D45E] = { width = 1, italic = 0, anchor = 0.9 }, -- q - -- [0x1D464] = { width = 1, italic = 0, anchor = 1.1 }, -- w - -- [0x1D6FE] = { width = 1, italic = 0, anchor = 1.1 }, -- \gamma - -- [0x1D706] = { width = 1, italic = 0, anchor = 1.05 }, -- \lambda - -- [0x1D70A] = { width = 1, italic = 0, anchor = 1.2 }, -- \omicron - -- [0x1D70F] = { width = 1, italic = 0, anchor = 1.05 }, -- \tau - -- }, - -- }, +-- Do a testrun with hats on these: +-- +-- { +-- tweak = "dimensions", +-- list = { +-- [0x1D44F] = { width = 1, italic = 0, anchor = 1.3 }, -- b +-- [0x1D451] = { width = 1, italic = 0, anchor = 0.8 }, -- d +-- [0x1D452] = { width = 1, italic = 0, anchor = 0.9 }, -- e +-- [0x0210E] = { width = 1, italic = 0, anchor = 1.3 }, -- h +-- [0x1D458] = { width = 1, italic = 0, anchor = 1.3 }, -- k +-- [0x1D453] = { xoffset = 0.6, width = 1.4, italic = 1.2, anchor = 1.5 }, -- f +-- [0x1D457] = { xoffset = 0.5, width = 1.3, italic = 1.7 }, -- j +-- [0x1D45D] = { xoffset = 0.15, width = 1.15, italic = 0, anchor = 1.4 }, -- p +-- [0x1D45E] = { width = 1, italic = 0, anchor = 0.9 }, -- q +-- [0x1D464] = { width = 1, italic = 0, anchor = 1.1 }, -- w +-- [0x1D6FE] = { width = 1, italic = 0, anchor = 1.1 }, -- \gamma +-- [0x1D706] = { width = 1, italic = 0, anchor = 1.05 }, -- \lambda +-- [0x1D70A] = { width = 1, italic = 0, anchor = 1.2 }, -- \omicron +-- [0x1D70F] = { width = 1, italic = 0, anchor = 1.05 }, -- \tau +-- }, +-- }, |