[latex3-commits] [git/LaTeX3-latex3-luaotfload] harfnode-dev: Handle fonts which map GID 0 to some Unicode value (db9a3e0)

Marcel Fabian Krüger tex at 2krueger.de
Sun Oct 27 20:19:00 CET 2019


Repository : https://github.com/latex3/luaotfload
On branch  : harfnode-dev
Link       : https://github.com/latex3/luaotfload/commit/db9a3e053ea768952e836fd6a03bc206f0519fd7

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

commit db9a3e053ea768952e836fd6a03bc206f0519fd7
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Oct 27 20:19:00 2019 +0100

    Handle fonts which map GID 0 to some Unicode value


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

db9a3e053ea768952e836fd6a03bc206f0519fd7
 src/luaotfload-harf-define.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-define.lua b/src/luaotfload-harf-define.lua
index 1b22c09..0220e2b 100644
--- a/src/luaotfload-harf-define.lua
+++ b/src/luaotfload-harf-define.lua
@@ -120,7 +120,7 @@ local function loadfont(spec)
     local characters = {}
     local nominals = {}
     for _, uni in next, unicodes do
-      local glyph = hbfont:get_nominal_glyph(uni)
+      local glyph = hbfont:get_nominal_glyph(uni) or 0
       characters[uni] = glyph
       nominals[glyph] = uni
     end





More information about the latex3-commits mailing list