|
|
@ -142,11 +142,9 @@ object ChapterProvider { |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textLine.upTopBottom(durY, textPaint) |
|
|
|
textLine.upTopBottom(durY, textPaint) |
|
|
|
durY += textPaint.textHeight * lineSpacingExtra / 10f |
|
|
|
durY += textPaint.textHeight * lineSpacingExtra / 10f |
|
|
|
if (isTitle) { |
|
|
|
|
|
|
|
durY += titleBottomSpacing |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
textPages.last().height = durY |
|
|
|
textPages.last().height = durY |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isTitle) durY += titleBottomSpacing |
|
|
|
durY += textPaint.textHeight * paragraphSpacing / 10f |
|
|
|
durY += textPaint.textHeight * paragraphSpacing / 10f |
|
|
|
return durY |
|
|
|
return durY |
|
|
|
} |
|
|
|
} |
|
|
|