I am trying to use this font from Google Fonts for my Android app. I want it as a downloadable font.
So, I have on res/fonts folder this xml:
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
app:fontProviderAuthority="com.google.android.gms.fonts"
app:fontProviderPackage="com.google.android.gms"
app:fontProviderQuery="Shantell Sans"
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
</font-family>
But when I run my app, it loads the default font instead of Shantell Sans.
If I try other fonts like "Hi Melody" or "Patrick Hand" in fontProviderQuery, the font is loaded correctly.
app:fontProviderQuery="Hi Melody"
app:fontProviderQuery="Patrick Hand"
According to the official documentation all fonts from Google Fonts can be used.
Which fonts can I use?
The entire Google Fonts Open Source collection! Visit https://fonts.google.com to browse.
So, why is "Shantell Sans" not loading?