|
|
@ -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) |
|
|
|