[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev, oberdiek-dev: Fix bug (c7c316e)

Marcel Fabian Krüger tex at 2krueger.de
Wed Dec 11 14:18:51 CET 2019


Repository : https://github.com/latex3/luaotfload
On branches: dev,oberdiek-dev
Link       : https://github.com/latex3/luaotfload/commit/c7c316edb01b8c9bb207b0687658c8acf8c776c2

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

commit c7c316edb01b8c9bb207b0687658c8acf8c776c2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Nov 17 02:39:20 2019 +0100

    Fix bug


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

c7c316edb01b8c9bb207b0687658c8acf8c776c2
 src/luaotfload-multiscript.lua | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-multiscript.lua b/src/luaotfload-multiscript.lua
index ddaa5e4..8a98b9b 100644
--- a/src/luaotfload-multiscript.lua
+++ b/src/luaotfload-multiscript.lua
@@ -124,7 +124,7 @@ local additional_scripts_fonts = setmetatable({}, {
 
 local function makecombifont(tfmdata, _, additional_scripts)
   local basescript = tfmdata.properties.script
-  local scripts = {basescript = false}
+  local scripts = {[basescript] = false}
   additional_scripts = additional_scripts_tables[additional_scripts]
   for script, fontname in pairs(additional_scripts) do
     if script ~= basescript then
@@ -163,10 +163,11 @@ function domultiscript(head, _, _, _, direction)
         if additional_scripts then
           if additional_scripts[last_script] then
             mapped_scr = last_script
-          elseif not last_fonts[mapped_scr] then
+          elseif last_fonts[mapped_scr] == nil then
             for i = 1, #additional_scripts do
-              if last_fonts[additional_scripts[i]] then
-                mapped_scr = additional_scripts[i]
+              local script = additional_scripts[i]
+              if last_fonts[script] ~= nil then
+                mapped_scr = script
                 break
               end
             end





More information about the latex3-commits mailing list