Menu

TTF to WOFF2 in the tab when the brand font is still a desktop file
πŸ“°

TTF to WOFF2 in the tab when the brand font is still a desktop file

DEV Community: frontendΒ·SherotreeΒ·10 days ago
#4OCYjhgP
#devtofrontend#devto#dev#font#woff2
Reading 0:00
15s threshold

Brand just dropped a .ttf (or .otf ) in Slack. Design opened it on macOS and it looks perfect. Marketing wants it on the landing page by Friday. The web does not want a raw TrueType file sitting in /public/fonts .

I used to either ship the TTF "for now", bounce it through Font Squirrel, or ask design to export WOFF2 from a desktop app I don't have installed. That path works for a brand refresh. It's painful when the file already exists and you just need a web-safe package before a deploy.

What the web actually wants

Browsers can load TTF. That doesn't mean you should ship it as the primary format.

A boring but complete handoff usually includes:

WOFF2 β€” the format you put in @font-face first (smaller, modern browsers)

Optional WOFF β€” legacy fallback if you still care about very old clients

Optional subset β€” Latin / brand glyphs only, not the full multilingual dump from the foundry

A license note β€” so the next person doesn't assume every desktop font is free to host

You don't need five formats.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.