pull/885/head^2
gedoor 4 years ago
parent 52ce20faa6
commit dabb66018f
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt

@ -72,7 +72,11 @@ data class TextPage(
val char = textLine.text[i].toString() val char = textLine.text[i].toString()
val cw = StaticLayout.getDesiredWidth(char, ChapterProvider.contentPaint) val cw = StaticLayout.getDesiredWidth(char, ChapterProvider.contentPaint)
val x1 = x + cw val x1 = x + cw
textLine.addTextChar(charData = char, start = x, end = x1) textLine.textChars.add(
TextChar(
char, start = x, end = x1
)
)
x = x1 x = x1
} }
textLines.add(textLine) textLines.add(textLine)

Loading…
Cancel
Save