|
|
@@ -881,7 +881,9 @@ object ChapterProvider {
|
|
|
tPaint.typeface = titleFont
|
|
|
tPaint.textSize = with(ReadBookConfig) { textSize + titleSize }.toFloat().spToPx()
|
|
|
tPaint.isAntiAlias = true
|
|
|
- tPaint.isLinearText = true
|
|
|
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q && AppConfig.optimizeRender) {
|
|
|
+ tPaint.isLinearText = true
|
|
|
+ }
|
|
|
//正文
|
|
|
val cPaint = TextPaint()
|
|
|
cPaint.color = ReadBookConfig.textColor
|
|
|
@@ -889,7 +891,9 @@ object ChapterProvider {
|
|
|
cPaint.typeface = textFont
|
|
|
cPaint.textSize = ReadBookConfig.textSize.toFloat().spToPx()
|
|
|
cPaint.isAntiAlias = true
|
|
|
- cPaint.isLinearText = true
|
|
|
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q && AppConfig.optimizeRender) {
|
|
|
+ cPaint.isLinearText = true
|
|
|
+ }
|
|
|
return Pair(tPaint, cPaint)
|
|
|
}
|
|
|
|