summaryrefslogtreecommitdiff
path: root/src/fontloader/misc/fontloader-font-otl.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-05-09 07:15:44 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-05-09 07:16:58 +0200
commit195d57dba1533a03204aa8b7ff26ed2bb28d3405 (patch)
treebd50f6d0ee01cc4417349eaa82dbfc08b271341b /src/fontloader/misc/fontloader-font-otl.lua
parent0ba71246a7445204a457602806f9cc80c0cbe354 (diff)
downloadluaotfload-195d57dba1533a03204aa8b7ff26ed2bb28d3405.tar.gz
[fontloader] sync with Context as of 2016-05-09
Fixes #349 and #357. Also the new AFM code is due, let’s see what else we need to use it.
Diffstat (limited to 'src/fontloader/misc/fontloader-font-otl.lua')
-rw-r--r--src/fontloader/misc/fontloader-font-otl.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-font-otl.lua b/src/fontloader/misc/fontloader-font-otl.lua
index f7b6eb5..01342a9 100644
--- a/src/fontloader/misc/fontloader-font-otl.lua
+++ b/src/fontloader/misc/fontloader-font-otl.lua
@@ -101,6 +101,12 @@ registerdirective("fonts.otf.loader.forcenotdef", function(v) forcenotdef =
-- end
-- end
+-- Enhancers are used to apply fixes and extensions to fonts. For instance, we use them
+-- to implement tlig and trep features. They are not neccessarily bound to opentype
+-- fonts but can also apply to type one fonts, given that they obey the structure of an
+-- opentype font. They are not to be confused with format specific features but maybe
+-- some are so generic that they might eventually move to this mechanism.
+
local ordered_enhancers = {
"check extra features",
}
@@ -302,7 +308,7 @@ function otf.load(filename,sub,featurefile) -- second argument (format) is gone
--
enhancers.apply(data,filename,data)
--
- constructors.addcoreunicodes(unicodes)
+ -- constructors.addcoreunicodes(data.resources.unicodes) -- still needed ?
--
if applyruntimefixes then
applyruntimefixes(filename,data)