Convert TTF to WOFF2 and subset fonts for faster pages
Convert TTF and OTF fonts to WOFF2 and subset them to the characters you use, often cutting a text font to 15–30 KB. Formats, @font-face, unicode-range and the licence check.
Topic
Type on the web: sizing, scaling and readability across screens.
3 articles
Convert TTF and OTF fonts to WOFF2 and subset them to the characters you use, often cutting a text font to 15–30 KB. Formats, @font-face, unicode-range and the licence check.
One variable font file can replace a whole family. Here is how the weight, width, slant and optical size axes map to CSS, how to declare them in @font-face, and how to set custom axes without the inheritance trap.
How clamp() makes text scale smoothly between screen sizes, how to work out the middle value, and the zoom rule that keeps fluid typography accessible.
Enjoying Refract Tools? ☕️
Refract is a personal project built to make design and development a little easier, with practical, intuitive tools that help you work smarter, without AI doing the work for you.
If you find the tools useful, consider buying me a coffee. Every bit of support helps me keep building, improving, and sharing more free tools with the community.
Thanks for being here! ❤️
Buy me a coffee