[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix disc handling with long clusters (97a89d6)

Marcel Fabian Krüger tex at 2krueger.de
Sat Mar 13 15:07:16 CET 2021


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

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

commit 97a89d691db2a7ee0ead56eafa517f74d6a5dea2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Mar 13 15:05:25 2021 +0100

    Fix disc handling with long clusters


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

97a89d691db2a7ee0ead56eafa517f74d6a5dea2
 src/luaotfload-harf-plug.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index 6e776d3..6fe518a 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -452,7 +452,9 @@ function shape(head, firstnode, run)
             for j = 1, #rep_glyphs do
               local glyph = rep_glyphs[j]
               glyph.cluster = glyph.cluster - disc_cluster
-              glyph.nextcluster = glyph.nextcluster - disc_cluster
+              if glyph.nextcluster then
+                glyph.nextcluster = glyph.nextcluster - disc_cluster
+              end
             end
             do
               local cluster_offset = disc_cluster - cluster + (saved_after and 2 or 1) -- The offset the glyph indices will move





More information about the latex3-commits mailing list.