Some icons are incorrectly rendered with `IconicsTextView` + XML
About this issue
Some icons are incorrectly rendered with IconicsTextView + XML.
-
Pixel C emulator:

-
Samsung Galaxy S20 Ultra:

Sample code:
<com.mikepenz.iconics.view.IconicsTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/title_statistics_chart_success"
android:textAppearance="?attr/textAppearanceBody2" />
<string name="title_statistics_chart_success">{gmd-trending-up} Success</string>
Details
- Used support library version:
androidx.appcompat:appcompat:1.4.0-alpha03 - Used gradle build tools version 4.2.2 / 7.1.1
- Used tooling / Android Studio version: 4.2.2
- Used library version: 5.2.8, 5.3.0-b01
Fonts:
-
com.mikepenz:google-material-typeface:4.0.0.1-kotlin@aar -
com.mikepenz:community-material-typeface:5.8.55.0-kotlin@aar
Are they correctly rendered if using as IconicsDrawable?
@mikepenz I just checked this, yes:

Could it be that the font was not initialised, or maybe android API level related?
@mikepenz, let me create a reproducible sample and share it asap.
@mikepenz It seems like the appcompat dependency is causing this issue, it is working with:
androidx.appcompat:appcompat:1.3.1
But starts breaking with:
androidx.appcompat:appcompat:1.4.0-alpha01+
Sample:
https://github.com/dummyco/android-iconics-gh-592
That's super interesting :/ will have to take a closer look, not sure why that would be.
Maybe it's time to deprecate all text based forms, and only retain the IconicsDrawable
I have the feeling something in here overwrites our spannable
You will have to add app:emojiCompatEnabled="false" to the xml (using their setter to disable it programmatically from the view seems to not work.
Tried to find a way around, but have not found any solution beside disabling support for it via xml
That's wonderful! Thank you for taking a look 👍🏻
Just to note this also occurs on compose previews
Are they correctly rendered if using as
IconicsDrawable?