News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by Freak_NL on Friday December 04, 2020 @05:07AM (#25300750)
That's not it. WOFF is just a container format for OpenType and TrueType fonts with better compression and some metadata.

WOFF has nothing to do with rendering. You can achieve the exact same rendering with a WOFF file as you can with TTF; the contents are the same.

Re:Self-host your fonts for better performance by frereubu on Friday December 04, 2020 @05:21AM (#25300833)
Well, TIL about it being a container. But do they really contain an identical amount of information for font rendering? I'm no font expert, but I do know that you can have more or less information in a font file that affects how it's rendered.
Re:Self-host your fonts for better performance by p_l on Friday December 04, 2020 @05:41AM (#25300945)
Yes, it's just an Open Type file. The usual omitted stuff is subsetting a bigger font to include only certain glyphs you need, usually you don't mutilate font by removing rendering data from glyphs.
Re:Self-host your fonts for better performance by jfk13 on Friday December 04, 2020 @06:35AM (#25301229)
Yes, it's just a container for the exact same data that an OpenType font holds.

On the other hand, it's possible that in the course of deployment, various things may be dropped from the original font resource: not just subsetting (reducing the repertoire of supported characters), but in some cases also OpenType features (e.g. ligatures or contextual forms), and in some cases hinting is stripped.

If that is done, the webfont version may indeed appear differently than the original "desktop" font, depending on local font-rendering settings.

Re:Self-host your fonts for better performance by andybak on Friday December 04, 2020 @06:48AM (#25301302)
What lunatic would strip hinting!?

Is this really done?

Re:Self-host your fonts for better performance by jfk13 on Friday December 04, 2020 @06:49AM (#25301308)
Yes - after all, it makes the font resource smaller. (And if the designer is working on a Mac, they won't notice any difference.)
Re:Self-host your fonts for better performance by da_big_ghey on Friday December 04, 2020 @08:17AM (#25301906)
Mea culpa, I've done this once before. I work on a small 4k screen so I couldn't tell the difference, though others pointed it out and I fixed it. I was trying to eke out that last bit of performance.