[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Small optimization (64e077a)
Marcel Fabian Krüger
tex at 2krueger.de
Wed Oct 28 03:18:18 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/64e077a1df9f616a3bb629cdd9e1c044a32bd00b
>---------------------------------------------------------------
commit 64e077a1df9f616a3bb629cdd9e1c044a32bd00b
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Wed Oct 28 03:17:46 2020 +0100
Small optimization
>---------------------------------------------------------------
64e077a1df9f616a3bb629cdd9e1c044a32bd00b
src/luaotfload-harf-plug.lua | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index b85c24f..27f4548 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -189,8 +189,9 @@ local function itemize(head, fontid, direction)
code = 0x200C
-- skip = false -- Not sure about this, but lastskip should be a bit faster
elseif id == glyph_t then
- if is_char(n) and getfont(n) == fontid then
- code = getchar(n)
+ local char = is_char(n, fontid)
+ if char then
+ code = char
skip = false
else
skip = true
More information about the latex3-commits
mailing list.