[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Small cleanup (d3e55ca)

Marcel Fabian Krüger tex at 2krueger.de
Sat Feb 22 09:59:31 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/d3e55ca647f7c5b42a9fc34ed3cc08b7c262f571

>---------------------------------------------------------------

commit d3e55ca647f7c5b42a9fc34ed3cc08b7c262f571
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Feb 22 09:59:31 2020 +0100

    Small cleanup


>---------------------------------------------------------------

d3e55ca647f7c5b42a9fc34ed3cc08b7c262f571
 src/luaotfload-harf-define.lua | 1 -
 src/luaotfload-harf-plug.lua   | 6 +-----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/luaotfload-harf-define.lua b/src/luaotfload-harf-define.lua
index 6a19ffc..077071e 100644
--- a/src/luaotfload-harf-define.lua
+++ b/src/luaotfload-harf-define.lua
@@ -338,7 +338,6 @@ local function scalefont(data, spec)
     },
     hb = {
       scale = scale,
-      spec = spec,
       palette = palette,
       shared = data,
       hscale = hscale,
diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index 93a4261..bdd862e 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -313,7 +313,7 @@ function shape(head, node, run)
 
   local fontdata = font.getfont(fontid)
   local hbdata = fontdata.hb
-  local spec = hbdata.spec
+  local spec = fontdata.specification
   local features = spec.hb_features
   local options = spec.features.raw
   local hbshared = hbdata.shared
@@ -848,10 +848,6 @@ local function shape_run(head, current, run)
   if not run.skip then
     -- Font loaded with our loader and an HarfBuzz face is present, do our
     -- shaping.
-    local fontid = run.font
-    local fontdata = font.getfont(fontid)
-    local options = fontdata.specification.features.raw
-
     local glyphs, offset
     head, glyphs, offset = shape(head, current, run)
     return offset, tonodes(head, current, run, glyphs)





More information about the latex3-commits mailing list.