Supported Font Formats in Flutter

386 views
Skip to first unread message

Brian Egan

unread,
Mar 30, 2018, 8:42:50 AM3/30/18
to Flutter Dev
Hey hey :) I asked on Github, but maybe it wasn't the best place.

Is there a list of officially supported font formats for Flutter? Two reasons I'd like to know: 1) I'd like to add this information to the Flutter Cookbook and 2) I was using WOFF in the `font_awesome_flutter` library, which worked fine on Mac but wasn't quite working on Windows a while back. Therefore, I switched to TTF. This was a bit of a bummer since WOFF has better compression and therefore smaller file sizes.

Thanks for any help!

Seth Ladd

unread,
Mar 30, 2018, 11:47:33 AM3/30/18
to Brian Egan, Chinmay Garde, Jason Simmons, Flutter Dev
+ Chinmay, Jason who might know

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian Hickson

unread,
Mar 30, 2018, 1:18:59 PM3/30/18
to Seth Ladd, Brian Egan, Chinmay Garde, Flutter Dev, Jason Simmons
If I understand correctly, the way WOFF compression works is to put a big part of the font into the decompressor. Since with Flutter you would ship the font with the decompressor together, using TTF instead of WOFF shouldn't make any difference to the final binary size.
--

--
Ian Hickson

😸

Brian Egan

unread,
Apr 2, 2018, 1:35:25 PM4/2/18
to Flutter Dev
Ah, great info, thanks for sharing. Good to know the final binary size would be equivalent either way.

I think it'd be cool to document that info and the supported font types if possible. I could see others asking the same question and making the same incorrect assumption about file size!

Ian Hickson

unread,
Apr 2, 2018, 7:50:54 PM4/2/18
to Brian Egan, Flutter Dev
Indeed. Please file a bug if you would like us to add that to our documentation (ideally, please let us know where you looked for that information, so that we can add it in the most useful place!). Thanks!

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸

Brian Egan

unread,
Apr 3, 2018, 4:30:43 AM4/3/18
to Flutter Dev
Thanks! This is the original issue I created here: https://github.com/flutter/flutter/issues/13823

Was planning on adding this info to the Flutter Cookbook as part of my work on that section of the Flutter website, and happy to help add it in more places as well if ya think it's a good idea.

The only thing missing: Does anyone happen to know what the supported formats are?



On Friday, March 30, 2018 at 2:42:50 PM UTC+2, Brian Egan wrote:
Reply all
Reply to author
Forward
0 new messages