Attached below is a screenshot of the fonts on my device.
Here is the requirement:
- if the user selects the default font, the app should use Roboto
- if any other font is selected, use the selected font on the app.
Examples:
- if selected font = Rosemary, app. font = Rosemary
- if selected font = Default, app. font = Roboto
(The default font on the system may or may not be Roboto)
How do I programmatically get the font selected on the system, and also know if it's the default one or not?
I know that if I use Typeface.DEFAULT, it would give me the selected font. But I would also like to know if it's the Default font (as seen in the attached screenshot).