diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-31 03:48:28 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-31 03:48:28 -0700 |
commit | a047f7b3c164f69b0713ee781aeefd07a27e8c61 (patch) | |
tree | 8cadd00504e69e265520f576f55da2c9e7ecfba4 /luaotfload-extralibs.lua | |
parent | a02c539db15612e87b095c3665f56d9436e669fb (diff) | |
parent | 9aec66e141e10d698e255c1303063e3a1236c278 (diff) | |
download | luaotfload-a047f7b3c164f69b0713ee781aeefd07a27e8c61.tar.gz |
Merge pull request #131 from phi-gamma/master
improve letterspacing
Diffstat (limited to 'luaotfload-extralibs.lua')
-rw-r--r-- | luaotfload-extralibs.lua | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/luaotfload-extralibs.lua b/luaotfload-extralibs.lua index 3769e06..d04ba5b 100644 --- a/luaotfload-extralibs.lua +++ b/luaotfload-extralibs.lua @@ -211,7 +211,12 @@ if not markdata then if k == true then return marks[currentfont()] else - local resources = identifiers[k].resources or { } + local resources = { } + + if identifiers[k] then + resources = identifiers[k].resources or { } + end + local marks = resources.marks or { } t[k] = marks return marks @@ -369,11 +374,10 @@ kerns.disablecharacterkerning = disablecharacterkerning --- now for the simplistic variant --- unit -> bool local enablefontkerning = function ( ) - return add_processor( - kernfont.handler, - "typesetters.kernfont", - "pre_linebreak_filter", "hpack_filter" - ) + return add_processor( kernfont.handler + , "typesetters.kernfont" + , "pre_linebreak_filter" + , "hpack_filter") end --- unit -> bool |