font family does not work on Android 11 (api 30) and all the apps that have font family in my phone have become the default font of the phone.
If you have this problem and there is a solution, thank you.
I use this:
<item name="android:fontFamily">@font/font_name</item>
This does not work either:
<item name="android:fontFamily">@font/font_name</item>
<item name="fontFamily">@font/font_name</item>
Copyright Notice:Content Author:「mehrdad fadaei」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/65480426/font-family-does-not-work-in-android-11-api-30