You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Add support for the Google font provider (instead of just a dummy API) #1097
The application on which I'm working on use that feature and one of my user who use MicroG instead of GooglePlayService receive a crash during font loading due to the font not available.
With FontsProvider on top of CalyxOS MicroG, this resolved my issues with DownloadableFontsKotlin as well as with Google Fi crashing due to font resource not found. I can't WAIT until this is merged!
I'm reopening this, cause the feature is not fully implemented - it doesn't actually provide fonts and various font weights, but just fallbacks to Roboto Regular. Probably can be improved, but works for not having apps crash, thanks to @grote :)
Reacted by fynngodau, Tristin Stagg, Paolo and between-zero-and-one-bears
changed the title [-][Feature Request] Add support for the Google font provider[/-][+][Feature Request] Add support for the Google font provider (instead of just a dummy API)[/+]on Feb 27, 2026
Activity
twstagg commentedon May 1, 2021
Is there any further consideration/update on this issue? I am interested into putting time/work into this issue if someone would kindly point me to some resources. I have opened downstream issue https://gitlab.com/CalyxOS/calyxos/-/issues/415 and am interested and potentially developing/finding a fix
twstagg commentedon May 8, 2021
@ligol Could you provide logcat/reproduce issue for me just so that we could compare?
grote commentedon May 21, 2021
@ligol I tried the downloadable fonts sample with MicroG: https://github.com/android/user-interface-samples/tree/main/DownloadableFontsKotlin
And it doesn't crash, but fails to download the font. Maybe your app isn't handling the error case properly?
grote commentedon May 21, 2021
I made the sample app work with https://github.com/grote/GmsCore/tree/1097-fonts-provider (still need to clean it up before making an PR).
twstagg commentedon May 22, 2021
Tomorrow, I will compile and install this on my Pixel 5 (Calyx OS) and see how it works with my issue
twstagg commentedon Jun 3, 2021
@grote Sorry for my lateness. I tested your code on CalyxOS AVD & had great results. Fonts sample (https://github.com/android/user-interface-samples/tree/main/DownloadableFontsKotlin) did not work at all without this FontsProvider, and I was able to reproduce Google Fi issue without FontsProvider.
With FontsProvider on top of CalyxOS MicroG, this resolved my issues with DownloadableFontsKotlin as well as with Google Fi crashing due to font resource not found. I can't WAIT until this is merged!
Great work! 👯 👍
grote commentedon Jun 3, 2021
Thanks for testing! Great that you could verify the fix.
mar-v-in commentedon Jun 6, 2021
I'm reopening this, cause the feature is not fully implemented - it doesn't actually provide fonts and various font weights, but just fallbacks to Roboto Regular. Probably can be improved, but works for not having apps crash, thanks to @grote :)
[-][Feature Request] Add support for the Google font provider[/-][+][Feature Request] Add support for the Google font provider (instead of just a dummy API)[/+]