mirror of
https://github.com/gedoor/legado.git
synced 2024-07-04 23:36:56 +08:00
替换轮廓数据时忽略索引0
This commit is contained in:
parent
da7093214f
commit
d6c2b5eceb
|
@ -802,8 +802,9 @@ interface JsExtensions : JsEncodeUtils {
|
||||||
if (errorQueryTTF.isBlankUnicode(oldCode)) {
|
if (errorQueryTTF.isBlankUnicode(oldCode)) {
|
||||||
return@forEachIndexed
|
return@forEachIndexed
|
||||||
}
|
}
|
||||||
val glyf = errorQueryTTF.getGlyfByUnicode(oldCode)
|
|
||||||
// 删除轮廓数据不存在的字符
|
// 删除轮廓数据不存在的字符
|
||||||
|
var glyf = errorQueryTTF.getGlyfByUnicode(oldCode) // 轮廓数据不存在
|
||||||
|
if (errorQueryTTF.getGlyfIdByUnicode(oldCode) == 0) glyf = null; // 轮廓数据指向保留索引0
|
||||||
if (filter && (glyf == null)) {
|
if (filter && (glyf == null)) {
|
||||||
contentArray[index] = ""
|
contentArray[index] = ""
|
||||||
return@forEachIndexed
|
return@forEachIndexed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user