This commit is contained in:
Horis 2024-02-25 22:35:19 +08:00
parent 2c75182a9f
commit 0b50c8e10a

View File

@ -879,6 +879,7 @@ object ChapterProvider {
tPaint.typeface = titleFont
tPaint.textSize = with(ReadBookConfig) { textSize + titleSize }.toFloat().spToPx()
tPaint.isAntiAlias = true
tPaint.isLinearText = true
//正文
val cPaint = TextPaint()
cPaint.color = ReadBookConfig.textColor
@ -886,6 +887,7 @@ object ChapterProvider {
cPaint.typeface = textFont
cPaint.textSize = ReadBookConfig.textSize.toFloat().spToPx()
cPaint.isAntiAlias = true
cPaint.isLinearText = true
return Pair(tPaint, cPaint)
}