Exporting Animations Without Embedded Fonts
I’ve created three animations, all of which include text using the Inter font. However, when I export the animations, the font is embedded in the file, significantly increasing its size.
How can I export the animations without embedding the font? Additionally, how can I configure the animations to use the website’s default body font instead?
Unfortunately, sharing the web font probably won't work. Most web fonts, including Google fonts, are WOFF/WOFF2 and Rive only supports TTF fonts. Also, you wouldn't be able to utilize the user's local fonts because browsers are very strict about what local font information is available without permissions.
If the text isn't going to change, instead of embedding the entire font, it's possible to pick which glyphs you actually need. Just go to the "Include" dropdown in the Assets tab and select "Glyphs used". I just did a quick test and my .riv file went from 806kb with the entire font down to 21kb with just the glyphs needed:
If you're using separate .riv files, another option would be to export the .riv and .ttf separately allowing you to use a single .ttf for all of the .riv files. The implementation depends on which runtime you're using, but here's the documentation: https://rive.app/community/doc/loading-assets/doct4wVHGPgC