Best way to use multiple custom fonts in Flutter web without increasing app size/initial load time

Issue

I have flutter web application and there almost 25+ fonts need to be used ,
all font folder size more than 35mb so please suggest me best way to implement all font with consuming memory

Solution

you can user google font package if those fonts are available in google fonts.

google font flutter

if you are trying to use icons as a fonts like font awesome or other custom font libraries download those libraries as SVG and discard unused icons then use IcoMoon to generate custom font. using that you can also download dart font mappings to use in your app
IcoMoon

Answered By – Shakthi Hettiarachchi

Answer Checked By – Candace Johnson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *