diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-06-10 07:43:41 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-06-10 07:43:44 +0200 |
commit | a8cae347b3c8a3154c36444e5d38705b59e5e57e (patch) | |
tree | 908a92a4b8f173c85511fe1f45b0c98bc9521bfc /src/fontloader/misc/fontloader-font-otj.lua | |
parent | 37f8c42a1b560df3f1bc1444405c772f00340f88 (diff) | |
download | luaotfload-a8cae347b3c8a3154c36444e5d38705b59e5e57e.tar.gz |
[fontloader] sync with Context as of 2016-05-31
This corresponds to commit a274872832cd on the mirror repo. The changes
since then were numerous but seem to introduce a couple new files we
didn’t ask for =) Later.
Diffstat (limited to 'src/fontloader/misc/fontloader-font-otj.lua')
-rw-r--r-- | src/fontloader/misc/fontloader-font-otj.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-font-otj.lua b/src/fontloader/misc/fontloader-font-otj.lua index 61baf93..0db30c6 100644 --- a/src/fontloader/misc/fontloader-font-otj.lua +++ b/src/fontloader/misc/fontloader-font-otj.lua @@ -753,7 +753,7 @@ local function inject_pairs_only(head,where) end local leftkern = i.leftkern if leftkern and leftkern ~= 0 then - insert_node_before(head,current,newkern(leftkern)) + head = insert_node_before(head,current,newkern(leftkern)) end local rightkern = i.rightkern if rightkern and rightkern ~= 0 then @@ -1521,10 +1521,19 @@ function injections.handler(head,where) head = injectspaces(head) end if nofregisteredmarks > 0 or nofregisteredcursives > 0 then + if trace_injections then + report_injections("injection variant %a","everything") + end return inject_everything(head,where) elseif nofregisteredpairs > 0 then + if trace_injections then + report_injections("injection variant %a","pairs") + end return inject_pairs_only(head,where) elseif nofregisteredkerns > 0 then + if trace_injections then + report_injections("injection variant %a","kerns") + end return inject_kerns_only(head,where) else return head, false |