summaryrefslogtreecommitdiff
path: root/otfl-font-ltx.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-11-10 21:15:51 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-11-10 21:15:51 +0200
commit6cc1d2bb944b91a2ddcdf7ad1a2b1a22b8c16d6a (patch)
tree11958a4f8520fb139f2246d0409a080ce41a72b7 /otfl-font-ltx.lua
parentce41e1b48f6cf87fa3cc876488e2243c991e8770 (diff)
downloadluaotfload-6cc1d2bb944b91a2ddcdf7ad1a2b1a22b8c16d6a.tar.gz
Really set default mode to node
This have been long broken since ConTeXt code no longer uses the value of `fonts.mode`, now we set it independent of ConTeXt code.
Diffstat (limited to 'otfl-font-ltx.lua')
-rw-r--r--otfl-font-ltx.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/otfl-font-ltx.lua b/otfl-font-ltx.lua
index 655a22e..f9d7fc4 100644
--- a/otfl-font-ltx.lua
+++ b/otfl-font-ltx.lua
@@ -168,6 +168,10 @@ local function colonized(specification) -- xetex mode
specification.sub = list.sub
list.sub = nil
end
+ if not list.mode then
+ -- if no mode is set, use our default
+ list.mode = fonts.mode
+ end
specification.features.normal = fonts.handlers.otf.features.normalize(list)
return specification
end