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