Material-design-icons: V4: how to get woff, woff2, .. for self-hosting

Created on 24 Aug 2020  Â·  3Comments  Â·  Source: google/material-design-icons

we must use self-hosting for the fonts and cannot use the google CDN

How can we get/build the woff, woff2, .. versions of the fonts?

i.e. in V3 different fonts files were in the iconfont directory and we could simply copy them.
In V4 there is only the ttf version in the font directory.

All 3 comments

You can convert the ttf online using this free tool: https://cloudconvert.com/ttf-converter

woff2 is widely supported (https://caniuse.com/#feat=woff2) and can be output by https://github.com/fonttools/fonttools or https://github.com/google/woff2. Depending on your browser support listing woff2 and the [ot]tf as sources might be sufficient, if not there are converters for many other formats.

I am using Ubuntu.
The ttf / otf → woff utility is woff-tools.
The ttf / otf → woff2 utility is woff2.
These two utilities provide convenient command-line conversions to the desired formats.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VeeK727 picture VeeK727  Â·  4Comments

LiamRiddell picture LiamRiddell  Â·  3Comments

quyleanh picture quyleanh  Â·  4Comments

akxer picture akxer  Â·  3Comments

anlexN picture anlexN  Â·  3Comments