summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-otp.lua')
-rw-r--r--tex/context/base/font-otp.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/tex/context/base/font-otp.lua b/tex/context/base/font-otp.lua
index 6453268bf..6c4f185b3 100644
--- a/tex/context/base/font-otp.lua
+++ b/tex/context/base/font-otp.lua
@@ -509,5 +509,11 @@ local function unpackdata(data)
end
end
-otf.enhancers.register( "pack", packdata)
-otf.enhancers.register("unpack",unpackdata)
+if otf.enhancers.register then
+
+ otf.enhancers.register( "pack", packdata)
+ otf.enhancers.register("unpack",unpackdata)
+
+end
+
+otf.enhancers.unpack = unpackdata -- used elsewhere