pull/1395/head
gedoor 3 years ago
parent d518a08a39
commit 8f3409fdcb
  1. 7
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -453,8 +453,11 @@ interface JsExtensions {
contentArray.forEachIndexed { index, s ->
val oldCode = s.code
if (font1.inLimit(s)) {
val code = font2.getCodeByGlyf(font1.getGlyfByCode(oldCode))
if (code != 0) contentArray[index] = code.toChar()
val glyf = font1.getGlyfByCode(oldCode)
val code = font2.getCodeByGlyf(glyf)
if (code != 0) {
contentArray[index] = code.toChar()
}
}
}
return contentArray.joinToString("")

Loading…
Cancel
Save