|
|
@ -419,6 +419,7 @@ object ChapterProvider { |
|
|
|
* 超出边界处理 |
|
|
|
* 超出边界处理 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private fun exceed(textLine: TextLine, words: Array<String>) { |
|
|
|
private fun exceed(textLine: TextLine, words: Array<String>) { |
|
|
|
|
|
|
|
if (textLine.textChars.isEmpty()) return |
|
|
|
val endX = textLine.textChars.last().end |
|
|
|
val endX = textLine.textChars.last().end |
|
|
|
if (endX > visibleRight) { |
|
|
|
if (endX > visibleRight) { |
|
|
|
val cc = (endX - visibleRight) / words.size |
|
|
|
val cc = (endX - visibleRight) / words.size |
|
|
|