mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
2c75182a9f
commit
0b50c8e10a
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user