From 64cce92a407660e03279930053db46449fecd604 Mon Sep 17 00:00:00 2001 From: hingbong Date: Wed, 15 Apr 2020 11:18:00 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=AD=A3=E6=96=87=E5=8A=A0=E7=B2=97?= =?UTF-8?q?=E6=97=B6,=20=E6=A0=87=E9=A2=98=E4=BD=BF=E7=94=A8=E6=9B=B4?= =?UTF-8?q?=E7=B2=97=E7=9A=84=E5=AD=97=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引用: https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Meaning_of_relative_weights https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping Signed-off-by: hingbong --- .../java/io/legado/app/ui/book/read/page/ChapterProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt index c5cd52b63..d15ae0e61 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt @@ -265,7 +265,8 @@ object ChapterProvider { titlePaint = TextPaint() titlePaint.color = ReadBookConfig.durConfig.textColor() 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.isAntiAlias = true //正文