I would like for my TextView to have fontFamily set to sans-serif-thin
whenever this font family is available on the device and use sans-serif-light
if Roboto Thin is missing.
Is there a way how to programmatically find out whether a device supports a particular font family?
Is it safe to use values in resource directory for this king of behaviour?
<string name="main_font_family">sans-serif</string> <!-- values folder -->
<string name="main_font_family">sans-serif-light</string> <!-- values-v14 folder -->
<string name="main_font_family">sans-serif-thin</string> <!-- values-v16 folder -->
Is Roboto Thin guaranteed to be on all Jelly Bean devices?
EDIT: I can of course download required Roboto fonts from android site and use it on all OS version but it significantly increase the overall size of the APK, right?