Font Family does not work in Android 11 (api 30)
NickName:mehrdad fadaei Ask DateTime:2020-12-29T00:01:07

Font Family does not work in Android 11 (api 30)

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

More about “Font Family does not work in Android 11 (api 30)” related questions

Font Family does not work in Android 11 (api 30)

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, than...

Show Detail

Android font family not working in api <=~21?

I am using FontAwesome 5 ttf files, so I have made a font family like so: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;font-family xmlns:android="http://schemas.android.com/apk/res/android"

Show Detail

My font does not work in IE11

My font does not work in IE11 and I was wondering if anyone out there knew why? @font-face { font-family: myFont; src: url('LT_21152.eot'); } @font-face { font-family: my...

Show Detail

Set default font family for Android app

I'm new to Android studio and I am wondering where to set the default font family for Android app in Android studio after reading the accepted answer here. I have tried to put the code in activity...

Show Detail

Android Storage access framework does not work on Android 11 (API 30)

I use the following code to check wether &quot;Storage access framework&quot; is available: public static boolean isSafAvailable(@Nullable final Context context) { if (Build.VERSION.SDK_INT...

Show Detail

Tkinter does not change font family

I want to change font family, but it does not work. from tkinter import * import tkinter.font as font class Window: def __init__(self): root = Tk() def_font=font.Font(family=...

Show Detail

Font Family does not work in ListItemText

Why fontFamily does not work below? &lt;ListItemText style={{fontFamily:&quot;Times New Roman&quot;}} primary=&quot;Sent mail&quot; /&gt; But if I add color it works. Example: https://codesandbox....

Show Detail

How does the font-family property work in CSS?

How does the font-family property work in CSS? Why is more than one font used? Isn't only one font used at a time by the browser?

Show Detail

Changing Font-Family Property of a Label via Nativescript on Android

I have the following code with js to change the Font-Family of a Label. The idea is to access the native API of android to change the Font-Family, but it seems not to work. Any ideas what the probl...

Show Detail

Android Oreo Font Family NPE Crash

I'm using the new Android Font support introduced in API 26 and backported in version 26 of the support library. I've created a font_family.xml of two fonts like so: &lt;?xml version="1.0" encodi...

Show Detail