diff options
author | Marius <mariausol@gmail.com> | 2011-03-27 15:20:14 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-03-27 15:20:14 +0300 |
commit | 7343ad49feb683f1e82569cad484b9de40694b28 (patch) | |
tree | a3beef6dd6a74a51547c49828f96ae0b4b7ee023 /tex/context/base/math-vfu.lua | |
parent | bc20cf026cb0d2a175c116c5840d167f341d885e (diff) | |
download | context-7343ad49feb683f1e82569cad484b9de40694b28.tar.gz |
beta 2011.03.27 14:17
Diffstat (limited to 'tex/context/base/math-vfu.lua')
-rw-r--r-- | tex/context/base/math-vfu.lua | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/tex/context/base/math-vfu.lua b/tex/context/base/math-vfu.lua index b13f1804e..190a89c71 100644 --- a/tex/context/base/math-vfu.lua +++ b/tex/context/base/math-vfu.lua @@ -293,7 +293,7 @@ local function stack(main,characters,id,size,unicode,u1,d12,u2) end end -function vfmath.alas(main,id,size) +function vfmath.addmissing(main,id,size) local characters = main.characters local shared = main.shared local variables = main.goodies.mathematics and main.goodies.mathematics.variables or { } @@ -358,10 +358,6 @@ setmetatable ( reverse, { __index = function(t,name) return r end } ) -local mathdirectives = { - disablescaling = true -} - function vfmath.define(specification,set,goodies) local name = specification.name -- symbolic name local size = specification.size -- given size @@ -486,9 +482,9 @@ function vfmath.define(specification,set,goodies) -- -- we need to set some values in main as well (still?) -- - main.fullname = properties.fullname - main.type = "virtual" - main.nomath = false + main.fullname = properties.fullname + main.type = "virtual" + main.nomath = false -- parameters.x_height = parameters.x_height or 0 -- @@ -718,18 +714,19 @@ function vfmath.define(specification,set,goodies) size = size, } -- - if mathparameters then -- weak catch ? ? ? - vfmath.alas(main,#fontlist,size) - end - -- + main.mathparameters = mathparameters -- still traditional ones + vfmath.addmissing(main,#fontlist,size) mathematics.addfallbacks(main) -- + main.properties.math_is_scaled = true -- signal + fonts.constructors.assignmathparameters(main,main) + -- + main.MathConstants = main.mathparameters -- we directly pass it to TeX (bypasses the scaler) so this is needed + -- if trace_virtual or trace_timings then report_virtual("loading and virtualizing font %s at size %s took %0.3f seconds",name,size,os.clock()-start) end -- - fonts.constructors.mathactions(main,main,mathdirectives) - -- return main end |