From ecaffd8496fb879795063bb2b6d3601d4477a806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Mon, 8 Jul 2024 18:23:15 +0200 Subject: [PATCH] Fix codePointsForGlyph() for values >= 0xffff --- src/CmapProcessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CmapProcessor.js b/src/CmapProcessor.js index 6acc501..013a74a 100644 --- a/src/CmapProcessor.js +++ b/src/CmapProcessor.js @@ -248,7 +248,7 @@ export default class CmapProcessor { } } - if (g === gid) { + if ((g & 0xffff) === gid) { res.push(c); } }