summaryrefslogtreecommitdiff
path: root/src/fontloader
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-07-27 23:55:25 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-07-27 23:55:29 +0200
commitd37cfaf8b6bd3e82c8220d385e5da53793f332e1 (patch)
treefcb876f65c47989ecdf254c5ea9d54caa3be10ae /src/fontloader
parentca62681c4174dae59d0f45f6432d5ab60d4207f3 (diff)
downloadluaotfload-d37cfaf8b6bd3e82c8220d385e5da53793f332e1.tar.gz
[features,fontloader] fix adding features
This makes our own features work with otf.addfeature(). However, for TFM it’s still not functional out of the box since the enhancer is installed at a time when it has not been defined yet. An answer from Hans is pending. In the meantime, we put a crude hack into our font-tfm.lua to allow injecting the enhancer retroactively on Luaotfload init.
Diffstat (limited to 'src/fontloader')
-rw-r--r--src/fontloader/misc/fontloader-font-tfm.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fontloader/misc/fontloader-font-tfm.lua b/src/fontloader/misc/fontloader-font-tfm.lua
index d9b0523..6565a0e 100644
--- a/src/fontloader/misc/fontloader-font-tfm.lua
+++ b/src/fontloader/misc/fontloader-font-tfm.lua
@@ -85,6 +85,12 @@ local steps = {
enhancers["check extra features"] = otf.enhancers.enhance
+--[[ PHG: begin hack for Luaotfload ]]--
+luaotfload_tfm_enhancers_reregister = function ()
+ enhancers["check extra features"]=otf.enhancers.enhance
+end
+--[[ PHG: end hack for Luaotfload ]]--
+
local function applyenhancers(data,filename)
for i=1,#steps do
local step = steps[i]