From a3eac021b48b34fe52c1712f8a79323e2e82e07b Mon Sep 17 00:00:00 2001 From: Harshad Vedartham Date: Sun, 29 Dec 2024 00:30:52 +0530 Subject: [PATCH] undid --- .../other/writeily/format/WrProportionalHeaderSpanCreator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/thirdparty/java/other/writeily/format/WrProportionalHeaderSpanCreator.java b/app/thirdparty/java/other/writeily/format/WrProportionalHeaderSpanCreator.java index a92b40790f..fdc89572dc 100644 --- a/app/thirdparty/java/other/writeily/format/WrProportionalHeaderSpanCreator.java +++ b/app/thirdparty/java/other/writeily/format/WrProportionalHeaderSpanCreator.java @@ -38,6 +38,8 @@ public LargerHeaderSpan(final @ColorInt int color, final float proportion) { @Override public void updateMeasureState(@NonNull TextPaint textPaint) { + textPaint.setFakeBoldText(true); + textPaint.setColor(_color); textPaint.setTextSize(textPaint.getTextSize() * _proportion); } @@ -45,6 +47,7 @@ public void updateMeasureState(@NonNull TextPaint textPaint) { public void updateDrawState(@NonNull TextPaint textPaint) { textPaint.setFakeBoldText(true); textPaint.setColor(_color); + textPaint.setTextSize(textPaint.getTextSize() * _proportion); } } } \ No newline at end of file