What are the custom font file formats supported?

Docs link: https://docs.expo.io/versions/v33.0.0/guides/using-custom-fonts
On the docs there’s ttf file as sample. But what are the file formats supported?
Thanks.

Hey @rseromenho,

I don’t think we have a compiled list of the supported formats (which I’ll make a note about internally). What you can do is test your format(s) by adding under the packagerOpts field in your app.json and see if it works. I haven’t used a non-ttf font in a minute, but I know one of my old projects used otfs.

"packagerOpts": {
      "assetExts": [
        "ttf",
        "otf"
      ]
    },

Cheers,
Adam

Thanks.
I was trying .woff (added to the packagerOpts) and wasn’t working.
I assume ttf and otf are the working ones.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.