summaryrefslogtreecommitdiff
path: root/tex/context/fonts/mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/fonts/mkiv')
-rw-r--r--tex/context/fonts/mkiv/ebgaramond.lfg54
-rw-r--r--tex/context/fonts/mkiv/pagella-math.lfg74
2 files changed, 77 insertions, 51 deletions
diff --git a/tex/context/fonts/mkiv/ebgaramond.lfg b/tex/context/fonts/mkiv/ebgaramond.lfg
index 73f3e6b70..862e4e85d 100644
--- a/tex/context/fonts/mkiv/ebgaramond.lfg
+++ b/tex/context/fonts/mkiv/ebgaramond.lfg
@@ -1,35 +1,35 @@
return {
- name = "eb garamond",
+ name = "ebgaramond",
version = "1.00",
- comment = "Goodies that complement eb garamond.",
+ comment = "Goodies that complement ebgaramond.",
author = "Hans Hagen",
copyright = "ConTeXt development team",
mathematics = {
- tweaks = {
- aftercopying = {
- function(target,original,...)
- local crap = {
- [0x1D453] = { .20, 1.20 },
- [0x1D454] = { .15, 1.15 },
- }
- local characters = target.characters
- local function adapt(k,v)
- local character = characters[k]
- local width = character.width
- character.width = v[2]*width
- -- character.commands = { { "offset", v[1]*width, 0, k } }
- character.xoffset = v[1]*width
- local smaller = original.characters[k].smaller
- if smaller and smaller ~= k then
- adapt(smaller,v)
- end
- end
- for k, v in next, crap do
- adapt(k,v)
- end
- end,
- },
- },
+-- tweaks = {
+-- aftercopying = {
+-- function(target,original,...)
+-- local crap = {
+-- [0x1D453] = { .20, 1.20 },
+-- [0x1D454] = { .15, 1.15 },
+-- }
+-- local characters = target.characters
+-- local function adapt(k,v)
+-- local character = characters[k]
+-- local width = character.width
+-- character.width = v[2]*width
+-- -- character.commands = { { "offset", v[1]*width, 0, k } }
+-- character.xoffset = v[1]*width
+-- local smaller = original.characters[k].smaller
+-- if smaller and smaller ~= k then
+-- adapt(smaller,v)
+-- end
+-- end
+-- for k, v in next, crap do
+-- adapt(k,v)
+-- end
+-- end,
+-- },
+-- },
alternates = {
partial = { feature = 'ss02', value = 1, comment = "Curved partial" },
diff --git a/tex/context/fonts/mkiv/pagella-math.lfg b/tex/context/fonts/mkiv/pagella-math.lfg
index 262196f70..e2ed0eb43 100644
--- a/tex/context/fonts/mkiv/pagella-math.lfg
+++ b/tex/context/fonts/mkiv/pagella-math.lfg
@@ -1,9 +1,7 @@
-local kern_V = { bottomright = { { kern = -200 } } }
-local kern_W = { bottomright = { { kern = -100 } } }
------ kern_f = { bottomright = { { kern = -100 } } }
--- local offset_f = { xoffset = "llx" }
-
--- Beware of updates in ssty slots!
+local dimensions = {
+ [0x1D453] = { .40, 1.60, .5 }, -- offset width italic
+-- [0x1D453] = { .0, 2, 0 }, -- offset width italic
+}
return {
name = "pagella-math",
@@ -12,28 +10,56 @@ return {
author = "Hans Hagen",
copyright = "ConTeXt development team",
mathematics = {
- dimensions = {
- default = {
- -- [0x1D453] = { xoffset = 162, width = 278 + 162 },-- 𝑓
- -- [0x1D453] = offset_f, -- 𝑓
- -- ["1:0x1D453"] = offset_f, -- needed for compact
- -- ["2:0x1D453"] = offset_f, -- needed for compact
--- ["*:0x1D453"] = offset_f, -- 𝑓
+ tweaks = {
+ aftercopying = {
+ { "version", "Version 1.632" },
+ -- { "action", function(target,original) mathematics.tweaks.fixdimensions(target, original, fixes) },
+ -- { "action", mathematics.tweaks.fixdimensions, fixes },
+ { "dimensions", dimensions },
},
},
- kerns = {
- -- [0x1D449] = kern_V, -- 𝑉
- -- ["1:0x1D449"] = kern_V, -- needed for compact
- -- ["2:0x1D449"] = kern_V, -- needed for compact
- -- [0x1D44A] = kern_W, -- 𝑊
- -- ["1:0x1D44A"] = kern_W, -- needed for compact
- -- ["2:0x1D44A"] = kern_W, -- needed for compact
--- ["*:0x1D453"] = kern_f,
- ["*:0x1D449"] = kern_V, -- 𝑉
- ["*:0x1D44A"] = kern_W, -- 𝑊
- },
alternates = {
dotless = { feature = 'dtls', value = 1, comment = "Mathematical Dotless Forms" },
},
},
}
+
+-- local kern_V = { bottomright = { { kern = -200 } } }
+-- local kern_W = { bottomright = { { kern = -100 } } }
+-- ----- kern_f = { bottomright = { { kern = -100 } } }
+-- -- local offset_f = { xoffset = "llx" }
+--
+-- -- Beware of updates in ssty slots!
+--
+-- return {
+-- name = "pagella-math",
+-- version = "1.00",
+-- comment = "Goodies that complement pagella.",
+-- author = "Hans Hagen",
+-- copyright = "ConTeXt development team",
+-- mathematics = {
+-- dimensions = {
+-- default = {
+-- -- [0x1D453] = { xoffset = 162, width = 278 + 162 },-- 𝑓
+-- -- [0x1D453] = offset_f, -- 𝑓
+-- -- ["1:0x1D453"] = offset_f, -- needed for compact
+-- -- ["2:0x1D453"] = offset_f, -- needed for compact
+-- -- ["*:0x1D453"] = offset_f, -- 𝑓
+-- },
+-- },
+-- kerns = {
+-- -- [0x1D449] = kern_V, -- 𝑉
+-- -- ["1:0x1D449"] = kern_V, -- needed for compact
+-- -- ["2:0x1D449"] = kern_V, -- needed for compact
+-- -- [0x1D44A] = kern_W, -- 𝑊
+-- -- ["1:0x1D44A"] = kern_W, -- needed for compact
+-- -- ["2:0x1D44A"] = kern_W, -- needed for compact
+-- -- ["*:0x1D453"] = kern_f,
+-- ["*:0x1D449"] = kern_V, -- 𝑉
+-- ["*:0x1D44A"] = kern_W, -- 𝑊
+-- },
+-- alternates = {
+-- dotless = { feature = 'dtls', value = 1, comment = "Mathematical Dotless Forms" },
+-- },
+-- },
+-- }