Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4: how to get woff, woff2, .. for self-hosting #1059

Closed
tmtron opened this issue Aug 24, 2020 · 3 comments
Closed

V4: how to get woff, woff2, .. for self-hosting #1059

tmtron opened this issue Aug 24, 2020 · 3 comments

Comments

@tmtron
Copy link

tmtron commented Aug 24, 2020

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.

@xbeat
Copy link

xbeat commented Aug 25, 2020

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

@rsheeter
Copy link
Collaborator

rsheeter commented Sep 3, 2020

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.

@rsheeter rsheeter closed this as completed Sep 3, 2020
@ytxmobile98
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants