summaryrefslogtreecommitdiff
path: root/otfl-font-con.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-02-26 17:47:33 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2012-02-26 17:47:33 +0200
commit44edf674bc30f87263c01103774d60400b8b3915 (patch)
treeaa1b3c00b87c828c0e364ac21657791c13406861 /otfl-font-con.lua
parent304e36323def6d2ae7abc75abf50cd16605a78ee (diff)
downloadluaotfload-44edf674bc30f87263c01103774d60400b8b3915.tar.gz
Sync with context beta 2012.02.21 14:02
Diffstat (limited to 'otfl-font-con.lua')
-rw-r--r--otfl-font-con.lua18
1 files changed, 15 insertions, 3 deletions
diff --git a/otfl-font-con.lua b/otfl-font-con.lua
index 42ac8c2..9280996 100644
--- a/otfl-font-con.lua
+++ b/otfl-font-con.lua
@@ -44,7 +44,6 @@ local setmetatableindex = table.setmetatableindex
-- will be directives
constructors.dontembed = allocate()
-constructors.mathactions = { }
constructors.autocleanup = true
constructors.namemode = "fullpath" -- will be a function
@@ -89,7 +88,7 @@ constructors.keys = {
finalized = "boolean",
},
parameters = {
- mathsize = "scaledpoints",
+ mathsize = "number",
scriptpercentage = "float",
scriptscriptpercentage = "float",
units = "cardinal",
@@ -278,6 +277,14 @@ function constructors.assignmathparameters(target,original) -- simple variant, n
end
end
+function constructors.beforecopyingcharacters(target,original)
+ -- can be used for additional tweaking
+end
+
+function constructors.aftercopyingcharacters(target,original)
+ -- can be used for additional tweaking
+end
+
function constructors.enhanceparameters(parameters)
local xheight = parameters.x_height
local quad = parameters.quad
@@ -527,7 +534,7 @@ function constructors.scale(tfmdata,specification)
--
local italickey = "italic"
--
- -- some context specific trickery (we might move this to a plug in into here
+ -- some context specific trickery (this will move to a plugin)
--
if hasmath then
if properties.mathitalics then
@@ -553,6 +560,8 @@ function constructors.scale(tfmdata,specification)
--
-- end of context specific trickery
--
+ constructors.beforecopyingcharacters(target,tfmdata)
+ --
local sharedkerns = { }
--
-- we can have a dumb mode (basemode without math etc) that skips most
@@ -795,6 +804,9 @@ function constructors.scale(tfmdata,specification)
end
targetcharacters[unicode] = chr
end
+ --
+ constructors.aftercopyingcharacters(target,tfmdata)
+ --
return target
end