pull/885/head^2
gedoor 4 years ago
parent 0596ddafa8
commit ac5d377496
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ZhLayout.kt

@ -18,10 +18,10 @@ class ZhLayout(
textPaint: TextPaint, textPaint: TextPaint,
width: Int width: Int
) : Layout(text, textPaint, width, Alignment.ALIGN_NORMAL, 0f, 0f) { ) : Layout(text, textPaint, width, Alignment.ALIGN_NORMAL, 0f, 0f) {
var lineStart = IntArray(1000) var lineStart = arrayListOf<Int>()
var lineEnd = IntArray(1000) var lineEnd = arrayListOf<Int>()
var lineWidth = FloatArray(1000) var lineWidth = arrayListOf<Float>()
var lineCompressMod = IntArray(1000) var lineCompressMod = arrayListOf<Int>()
private var lineCount = 0 private var lineCount = 0
private val curPaint = textPaint private val curPaint = textPaint
private val cnCharWitch = getDesiredWidth("", textPaint) private val cnCharWitch = getDesiredWidth("", textPaint)

Loading…
Cancel
Save