Skip to content

[Feature Request] Add support for the Google font provider (instead of just a dummy API) #1097

Open

Description

@ligol

Google provide a Google font provider in Google play services 11+ in order for application to download font and share them between application. (https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts#the-basics)

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.

Would you be able to support that feature?

Activity

  1. twstagg commented on May 1, 2021

    @twstagg

    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

  2. twstagg commented on May 8, 2021

    @twstagg

    @ligol Could you provide logcat/reproduce issue for me just so that we could compare?

  3. grote commented on May 21, 2021

    @grote
    Contributor

    @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?

  4. grote commented on May 21, 2021

    @grote
    Contributor
  5. twstagg commented on May 22, 2021

    @twstagg

    Tomorrow, I will compile and install this on my Pixel 5 (Calyx OS) and see how it works with my issue

  6. twstagg commented on Jun 3, 2021

    @twstagg

    @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! 👯 👍

  7. grote commented on Jun 3, 2021

    @grote
    Contributor

    Thanks for testing! Great that you could verify the fix.

  8. mar-v-in commented on Jun 6, 2021

    @mar-v-in
    Member

    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 :)

  9. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions