diff options
author | Marius <mariausol@gmail.com> | 2012-07-27 18:00:16 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-07-27 18:00:16 +0300 |
commit | a5bdb8782fc92ea930e1f09b60bab5c97f3d533c (patch) | |
tree | d67090d8f1b8b953f1ec0e322935d8238608529c /tex/context/base/font-oti.lua | |
parent | f09b2aabeeebefd483622c018ae170e37397308d (diff) | |
download | context-a5bdb8782fc92ea930e1f09b60bab5c97f3d533c.tar.gz |
beta 2012.07.27 16:41
Diffstat (limited to 'tex/context/base/font-oti.lua')
-rw-r--r-- | tex/context/base/font-oti.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tex/context/base/font-oti.lua b/tex/context/base/font-oti.lua index d6853db31..06c2a42fa 100644 --- a/tex/context/base/font-oti.lua +++ b/tex/context/base/font-oti.lua @@ -8,15 +8,16 @@ if not modules then modules = { } end modules ['font-oti'] = { local lower = string.lower -local allocate = utilities.storage.allocate - local fonts = fonts -local otf = { } -fonts.handlers.otf = otf +local constructors = fonts.constructors -local otffeatures = fonts.constructors.newfeatures("otf") +local otf = constructors.newhandler("otf") +local otffeatures = constructors.newfeatures("otf") +local otftables = otf.tables local registerotffeature = otffeatures.register +local allocate = utilities.storage.allocate + registerotffeature { name = "features", description = "initialization of feature handler", @@ -25,8 +26,6 @@ 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) |