From d6c2b5eceb77e261f03844c3a689ad564f1540b7 Mon Sep 17 00:00:00 2001 From: Antecer Date: Thu, 20 Jun 2024 10:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E8=BD=AE=E5=BB=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E5=BF=BD=E7=95=A5=E7=B4=A2=E5=BC=950?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index ef8a51b42..787798705 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -802,8 +802,9 @@ interface JsExtensions : JsEncodeUtils { if (errorQueryTTF.isBlankUnicode(oldCode)) { return@forEachIndexed } - val glyf = errorQueryTTF.getGlyfByUnicode(oldCode) // 删除轮廓数据不存在的字符 + var glyf = errorQueryTTF.getGlyfByUnicode(oldCode) // 轮廓数据不存在 + if (errorQueryTTF.getGlyfIdByUnicode(oldCode) == 0) glyf = null; // 轮廓数据指向保留索引0 if (filter && (glyf == null)) { contentArray[index] = "" return@forEachIndexed