|
|
@ -270,8 +270,8 @@ object ChapterProvider { |
|
|
|
contentPaint.isAntiAlias = true |
|
|
|
contentPaint.isAntiAlias = true |
|
|
|
contentPaint.color = ReadBookConfig.durConfig.textColor() |
|
|
|
contentPaint.color = ReadBookConfig.durConfig.textColor() |
|
|
|
contentPaint.letterSpacing = ReadBookConfig.letterSpacing |
|
|
|
contentPaint.letterSpacing = ReadBookConfig.letterSpacing |
|
|
|
val bold = if (ReadBookConfig.textBold) Typeface.BOLD else Typeface.NORMAL |
|
|
|
val style = if (ReadBookConfig.textBold) Typeface.BOLD else Typeface.NORMAL |
|
|
|
contentPaint.typeface = Typeface.create(typeface, bold) |
|
|
|
contentPaint.typeface = Typeface.create(typeface, style) |
|
|
|
contentPaint.textSize = ReadBookConfig.textSize.sp.toFloat() |
|
|
|
contentPaint.textSize = ReadBookConfig.textSize.sp.toFloat() |
|
|
|
//间距 |
|
|
|
//间距 |
|
|
|
lineSpacingExtra = ReadBookConfig.lineSpacingExtra |
|
|
|
lineSpacingExtra = ReadBookConfig.lineSpacingExtra |
|
|
|