Skip to main content
Solved

Android Expo Custom Fonts Paywall v2


Forum|alt.badge.img+1

Hello I’m having trouble getting my custom fonts working with the paywall editor. Here is my expo-font config. The font I’m trying to add is AlfaSlabOne-Regular.ttf. 

`[
        'expo-font',
        {
          fonts: [
            './assets/fonts/AlfaSlabOne-Regular.ttf',
            './assets/fonts/AlternateGotNo2D.ttf',
            './assets/fonts/Roboto-Regular.ttf',
            './assets/fonts/RobotoCondensed-SemiBold.ttf',
            './assets/fonts/RobotoCondensed-SemiBoldItalic.ttf',
            './assets/fonts/RobotoMono-Regular.ttf',
            './assets/fonts/Roboto-MediumItalic.ttf',
          ],
        },
      ],` 

I saw the conversation here but that version of expo fonts where you can put the android and ios fonts in the config requires Expo 53 which I’m not ready to upgrade to. Also, it looks like the add font UI changed in the paywalls and you now upload the font directly. It is working properly on iOS.

Any ideas? 

 

Thanks,

Alan

Best answer by whygolf

For anyone dealing with this, the solution was to upgrade to the latest version of the sdk: I was on 8.8.0, the latest is now 9.1.0, creating a custom expo plugin to copy the fonts to the res folder with the names alfaslabone_regular and roboto_mediumitalic, and mapping the fonts to those names in the paywall editor (it’s a sneaky … button in the font upload modal). 

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 648 replies
  • July 29, 2025

Hi Alan, could you please open a support ticket here with the following information:

  • The RevenueCat SDK version and Expo version you are on
  • Are you making sure to select the Font Family in your text components in the Paywall Editor?
  • Your paywall code and the font mapping in the Paywall Editor

Forum|alt.badge.img+1
  • Author
  • Helper
  • 1 reply
  • Answer
  • August 7, 2025

For anyone dealing with this, the solution was to upgrade to the latest version of the sdk: I was on 8.8.0, the latest is now 9.1.0, creating a custom expo plugin to copy the fonts to the res folder with the names alfaslabone_regular and roboto_mediumitalic, and mapping the fonts to those names in the paywall editor (it’s a sneaky … button in the font upload modal). 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings