diff options
author | Marius <mariausol@gmail.com> | 2011-03-25 19:20:25 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-03-25 19:20:25 +0200 |
commit | 1455dd60b68c9140db1b9977c9e5ce372b772ec8 (patch) | |
tree | d2b7060a4d9891966a056dcf143ef20d43390561 /tex/context/fonts | |
parent | 2a9554684f61df8db63dec6d4e874f49b25a212b (diff) | |
download | context-1455dd60b68c9140db1b9977c9e5ce372b772ec8.tar.gz |
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/fonts')
-rw-r--r-- | tex/context/fonts/asana-math.lfg | 33 | ||||
-rw-r--r-- | tex/context/fonts/cambria-math.lfg | 6 | ||||
-rw-r--r-- | tex/context/fonts/lm-math.lfg | 10 | ||||
-rw-r--r-- | tex/context/fonts/lucida-math.lfg | 4 | ||||
-rw-r--r-- | tex/context/fonts/xits-math.lfg | 8 |
5 files changed, 50 insertions, 11 deletions
diff --git a/tex/context/fonts/asana-math.lfg b/tex/context/fonts/asana-math.lfg index 160b310f5..f845ca4de 100644 --- a/tex/context/fonts/asana-math.lfg +++ b/tex/context/fonts/asana-math.lfg @@ -1,7 +1,7 @@ -- This patch code is moved from font-pat.lua to this goodies --- files as it does not belomg in the core code. +-- files as it does not belong in the core code. -local patches = fonts.otf.enhancers.patches +local patches = fonts.handlers.otf.enhancers.patches local function patch(data,filename,threshold) local m = data.metadata.math @@ -16,10 +16,37 @@ end patches.register("after","check math parameters","asana",function(data,filename) patch(data,filename,1350) end) +local function less(value,target,original) return 0.25 * value end + return { - name = "lm-asana", + name = "asana-math", version = "1.00", comment = "Goodies that complement asana.", author = "Hans Hagen", copyright = "ConTeXt development team", + mathematics = { + parameters = { + -- StackBottomDisplayStyleShiftDown = 0, + -- StackBottomShiftDown = 0, + -- StackDisplayStyleGapMin = 0, + -- StackGapMin = 0, + -- StackTopDisplayStyleShiftUp = 0, + -- StackTopShiftUp = 0, + -- StretchStackBottomShiftDown = 0, + -- StretchStackGapAboveMin = 0, + -- StretchStackGapBelowMin = 0, + -- StretchStackTopShiftUp = 0, + StackBottomDisplayStyleShiftDown = less, + StackBottomShiftDown = less, + StackDisplayStyleGapMin = less, + StackGapMin = less, + StackTopDisplayStyleShiftUp = less, + StackTopShiftUp = less, + StretchStackBottomShiftDown = less, + StretchStackGapAboveMin = less, + StretchStackGapBelowMin = less, + StretchStackTopShiftUp = less, + } + } } + diff --git a/tex/context/fonts/cambria-math.lfg b/tex/context/fonts/cambria-math.lfg index 26972c9e4..3fd15d8a0 100644 --- a/tex/context/fonts/cambria-math.lfg +++ b/tex/context/fonts/cambria-math.lfg @@ -1,7 +1,7 @@ -- This patch code is moved from font-pat.lua to this goodies --- files as it does not belomg in the core code. +-- files as it does not belong in the core code. -local patches = fonts.otf.enhancers.patches +local patches = fonts.handlers.otf.enhancers.patches local function patch(data,filename,threshold) local m = data.metadata.math @@ -18,7 +18,7 @@ patches.register("after","check math parameters","cambria", function(data,filena patches.register("after","check math parameters","cambmath",function(data,filename) patch(data,filename,2800) end) return { - name = "lm-cambria", + name = "cambria-math", version = "1.00", comment = "Goodies that complement cambria.", author = "Hans Hagen", diff --git a/tex/context/fonts/lm-math.lfg b/tex/context/fonts/lm-math.lfg index 042f3026e..43de0c51e 100644 --- a/tex/context/fonts/lm-math.lfg +++ b/tex/context/fonts/lm-math.lfg @@ -1,7 +1,7 @@ -- This patch code is moved from font-pat.lua to this goodies -- files as it does not belomg in the core code. -local patches = fonts.otf.enhancers.patches +local patches = fonts.handlers.otf.enhancers.patches local function patch(data,filename) local uni_to_ind = data.map.map @@ -268,6 +268,12 @@ return { }, variables = { joinrelfactor = 3, -- default anyway - } + }, + parameters = { -- test values + -- FactorA = 123.456, + -- FactorB = false, + -- FactorC = function(value,target,original) return 7.89 * target.factor end, + -- FactorD = "Hi There!", + }, } } diff --git a/tex/context/fonts/lucida-math.lfg b/tex/context/fonts/lucida-math.lfg index 746d281e0..3341bea95 100644 --- a/tex/context/fonts/lucida-math.lfg +++ b/tex/context/fonts/lucida-math.lfg @@ -1,4 +1,4 @@ -local mathencodings = fonts.enc.math +local mathencodings = fonts.encodings.math mathencodings["lbr-ma"] = { [0x025CB] = 0x00, -- circle @@ -305,7 +305,7 @@ mathencodings["lbr-sy"] = table.merged(mathencodings["tex-sy"],mathencodings["lb mathencodings["lbr-fraktur"] = { } -fonts.vf.math.setletters(mathencodings, "lbr-fraktur", 0x1D504, 0x1D51E) +fonts.handlers.vf.math.setletters(mathencodings, "lbr-fraktur", 0x1D504, 0x1D51E) return { name = "lucida-math", diff --git a/tex/context/fonts/xits-math.lfg b/tex/context/fonts/xits-math.lfg index 84e569e5f..4151e18a0 100644 --- a/tex/context/fonts/xits-math.lfg +++ b/tex/context/fonts/xits-math.lfg @@ -1,7 +1,13 @@ +-- \setupbodyfont[xits] +-- +-- \starttext +-- $ABC$ $\cal ABC$ $\mathalternate{cal}\cal ABC$ +-- \stoptext + return { name = "xits-math", version = "1.00", - comment = "Goodies that complement xits.", + comment = "Goodies that complement xits (by Khaled Hosny).", author = "Hans Hagen", copyright = "ConTeXt development team", mathematics = { |