summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otp.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-05-14 19:58:50 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-05-14 19:58:50 +0200
commitfd0c4577a4b6e85ca2db664906e1a03807ce133f (patch)
treefa23fcc04248d03ff82e34634b8ef1bb9cf28acb /tex/context/base/mkiv/font-otp.lua
parentdb581096187dc2d3cbdbe4cdc39d247c168b1607 (diff)
downloadcontext-fd0c4577a4b6e85ca2db664906e1a03807ce133f.tar.gz
2017-05-14 19:15:00
Diffstat (limited to 'tex/context/base/mkiv/font-otp.lua')
-rw-r--r--tex/context/base/mkiv/font-otp.lua19
1 files changed, 2 insertions, 17 deletions
diff --git a/tex/context/base/mkiv/font-otp.lua b/tex/context/base/mkiv/font-otp.lua
index 91bd05b32..c52e574b9 100644
--- a/tex/context/base/mkiv/font-otp.lua
+++ b/tex/context/base/mkiv/font-otp.lua
@@ -30,9 +30,6 @@ fonts.handlers = handlers
local otf = handlers.otf or { }
handlers.otf = otf
-local enhancers = otf.enhancers or { }
-otf.enhancers = enhancers
-
local glists = otf.glists or { "gsub", "gpos" }
otf.glists = glists
@@ -146,7 +143,7 @@ end
-- and repack in such cases (never needed anyway) .. a tricky aspect is that
-- we then need to sort more thanks to random hashing
-local function packdata(data)
+function otf.packdata(data)
if data then
-- stripdata(data)
@@ -536,7 +533,7 @@ local unpacked_mt = {
end
}
-local function unpackdata(data)
+function otf.unpackdata(data)
if data then
local tables = data.tables
@@ -895,15 +892,3 @@ local function unpackdata(data)
end
end
end
-
-if otf.enhancers.register then
-
- otf.enhancers.register( "pack", packdata)
- otf.enhancers.register("unpack",unpackdata)
-
--- todo: directive
-
-end
-
-otf.enhancers.unpack = unpackdata -- used elsewhere
-otf.enhancers.pack = packdata -- used elsewhere