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