Hey lovely Koders,
I make an app but suppose i change my device font then in my app font is also changing.
I want that app font remains unchange if i change device font.
How to do this. Please help in this
Hey lovely Koders,
I make an app but suppose i change my device font then in my app font is also changing.
I want that app font remains unchange if i change device font.
How to do this. Please help in this
i didnt experience that ever, app had own fonts and didnt pick fonts of device.
This topic could be helpful
Iam sure he means the font type not font size.
For a universal font type in an app the developer needs to change the manifest file.
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:fontFamily">@font/your_font</item>
<item name="fontFamily">@font/your_font</item> <!-- target android sdk versions < 26 and > 14 if theme other than AppCompat -->
</style>
This is not helpful and not cover my issue.
I told you about font not font size.
Font means app is taken font which device have.
I just want to set app font to default whether device font is whatever.
App font shouldn’t be change after changing device font.
Then i misunderstood. For the moment you have to set the font for every component.
This should work. Get a list of components and set the font type.
This works with more components. See other blocks.
This can be done with properties in designer also.
You peoples are not understanding my saying.
In my app font type is set to default for every label.
Now if i change font in my device not in app then also whole app font tyoe is set to that font only.
We understand what you try to tell.
What you want is posible in two ways:
I cant understand your solutions… I just wants to set my app font to default only. It will not change if i change my device font.
If you set it to default the device font is taken.
If i set to some other type font like if i upload ttf file and use that font then it will change as per device font or not?