Merge pull request #190 from hingbong/master

feature: 正文加粗时, 标题使用更粗的字重
pull/192/head
kunfei 5 years ago committed by GitHub
commit 4f3d71100c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -265,7 +265,8 @@ object ChapterProvider {
titlePaint = TextPaint() titlePaint = TextPaint()
titlePaint.color = ReadBookConfig.durConfig.textColor() titlePaint.color = ReadBookConfig.durConfig.textColor()
titlePaint.letterSpacing = ReadBookConfig.letterSpacing titlePaint.letterSpacing = ReadBookConfig.letterSpacing
titlePaint.typeface = Typeface.create(typeface, Typeface.BOLD) titlePaint.typeface =
Typeface.create(typeface, if (ReadBookConfig.textBold) 900 else 700, false)
titlePaint.textSize = with(ReadBookConfig) { textSize + titleSize }.sp.toFloat() titlePaint.textSize = with(ReadBookConfig) { textSize + titleSize }.sp.toFloat()
titlePaint.isAntiAlias = true titlePaint.isAntiAlias = true
//正文 //正文

Loading…
Cancel
Save