summaryrefslogtreecommitdiff
path: root/tex/context/base/font-oti.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-oti.lua')
-rw-r--r--tex/context/base/font-oti.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/tex/context/base/font-oti.lua b/tex/context/base/font-oti.lua
index 06c2a42fa..d6853db31 100644
--- a/tex/context/base/font-oti.lua
+++ b/tex/context/base/font-oti.lua
@@ -8,16 +8,15 @@ if not modules then modules = { } end modules ['font-oti'] = {
local lower = string.lower
+local allocate = utilities.storage.allocate
+
local fonts = fonts
-local constructors = fonts.constructors
+local otf = { }
+fonts.handlers.otf = otf
-local otf = constructors.newhandler("otf")
-local otffeatures = constructors.newfeatures("otf")
-local otftables = otf.tables
+local otffeatures = fonts.constructors.newfeatures("otf")
local registerotffeature = otffeatures.register
-local allocate = utilities.storage.allocate
-
registerotffeature {
name = "features",
description = "initialization of feature handler",
@@ -26,6 +25,8 @@ registerotffeature {
-- these are later hooked into node and base initializaters
+local otftables = otf.tables -- not always defined
+
local function setmode(tfmdata,value)
if value then
tfmdata.properties.mode = lower(value)