wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
673 stars 114 forks source link

Weight of AztecTextFormat.FORMAT_BOLD is not exactly #1067

Closed tudoaneverfit closed 6 months ago

tudoaneverfit commented 6 months ago

Observed

I am using the mode AztextFormat.BOLD, but it seems the font weight of the text is not exactly like the source of this lib. Please help me?

Screen Shot 2023-11-03 at 10 32 07

Code

<org.wordpress.aztec.AztecText
        android:id="@+id/aztecEditor"
        android:layout_width="@dimen/dp_0"
        android:layout_height="@dimen/dp_0"
        android:gravity="top|start"
        android:inputType="textCapSentences|textMultiLine"
        android:minHeight="@dimen/dp_150"
        android:padding="@dimen/dp_20"
        android:scrollbars="vertical"
        android:textSize="@dimen/sp_15"
        app:blockVerticalPadding="@dimen/dp_0"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:textColor="@android:color/black" />

Expected

Screen Shot 2023-11-03 at 10 36 35

Tested

Emulator Pixel 6 API 31 - lib version: 1.6.2