News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by frereubu on Friday December 04, 2020 @04:53AM (#25300675)
The "cleaner" feel may well be to do with better font rendering for desktop fonts, because you'll be using something like TTF rather than WOFF. Web font files have to trade off file size for quality, which desktop fonts don't have to do.
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.
Re:Self-host your fonts for better performance by corty on Friday December 04, 2020 @05:17AM (#25300818)
Most free fonts are rather poor quality. Most font designers seem to publish web fonts for free as an advertisement for their services or print font products they sell. As a consequence, while the sample sentence might look great, the feeling when reading is poor. Especially screen optimisation is lacking, which is what distinguishes the usual fonts you get with your OS (like Arial or Roboto) from stuff you would buy for print (like Helvetica). Also, people tend to pick more fancy fonts to set themselves apart, which of course decreases readability even with very good fonts: you can just read fonts faster if you are used to them, uncommon ones slow you down and feel uncomfortable for long texts.
Re:Self-host your fonts for better performance by anoncake on Friday December 04, 2020 @06:23AM (#25301158)
Font designers publish poor quality fonts to promote their products? That isn't supposed to work.
Re:Self-host your fonts for better performance by rangibaby on Friday December 04, 2020 @06:38AM (#25301241)
You’re underestimating how much work and skill it takes to make a good font, even for a great designer, so type foundries like to lock good fonts up behind rent-seeking license agreements.
Re:Self-host your fonts for better performance by colonwqbang on Friday December 04, 2020 @06:58AM (#25301360)
Selling fonts is not rent-seeking.

Rent-seeking would be if Google demanded money from a font designer to let their fonts be "compatible" with Chrome. I.e. Pay me or I'll make sure your product doesn't work with my product. App stores is a common example; pay Apple or they'll make sure your software doesn't run on the iPhone.

Re:Self-host your fonts for better performance by amyjess on Friday December 04, 2020 @01:26PM (#25305849)
Some features of the license agreement are though.

For example, some foundries require you buy a special expensive license in order to use their fonts in a PDF. IIRC, Hoefler & Co. and Emigre do this (though it's been years since I've looked, so I may have changed this). Their rationale is that since it's possible to extract font from a PDF, they need to pay for any font piracy that results from that.

(never mind that anyone who wants to pirate the font would just go and find a torrent instead of ripping it out of a PDF... and there are torrents of every notable foundry's entire libraries)

Re:Self-host your fonts for better performance by colonwqbang on Friday December 04, 2020 @05:30PM (#25309154)
You may not like it, neither do I. But what you have there is just rent plain and simple, not rent-seeking.

Rent-seeking is when a third party uses force to claim profit from an agreement they're not actually party to.

For example, you rent a business property. You pay the landlord and agree to their terms. Next week the mob shows up and demand protection money to "keep you from harm". Implying that harm will surely come to you unless you pay. That's rent-seeking.

The app store analogy fits rather nicely I think, but it depends on your viewpoint.

Re:Self-host your fonts for better performance by rangibaby on Tuesday December 08, 2020 @09:18PM (#25354565)
> Rent-seeking is when a third party uses force to claim profit from an agreement they're not actually party to.

The agreement is between you and the law in most countries, which says that typefaces are exempt from copyright. The third party are foundries who license fonts to you and charge you more based on how popular your website is.

Re:Self-host your fonts for better performance by colonwqbang on Friday December 11, 2020 @01:44PM (#25389110)
A typeface is an artistic work and as such is certainly covered by copyright in "most countries". If they were not then why would license agreements even be a thing.

If you don't wish to agree to the license terms of a particular typeface, you have the option to choose another typeface instead. This includes the myriad free typefaces that exist today.

If you buy something from me or strike a license agreement with me, I'm not a "third party" to that transaction.

Re:Self-host your fonts for better performance by rangibaby on Thursday December 17, 2020 @12:35AM (#25452879)
There is literally an exception in US and other countries’ copyright law just for typefaces.

> If they were not then why would license agreements even be a thing.

We could make a license agreement that you pay me per breathe of air you take. It’s not my fault if you sign that.

Re:Self-host your fonts for better performance by marcosdumay on Friday December 04, 2020 @09:32AM (#25302570)
Those fonts are never simply "sold".

The most usual is that you'll have to pay a certain price up-front (or monthly), and some more for each access. The odds are also good that you won't be able to host the font yourself, because well, the foundry has to count those access, doesn't it? And if you want the foundry to respond any quickly, you better pay some extra.

Re:Self-host your fonts for better performance by tannhaeuser on Friday December 04, 2020 @07:16AM (#25301455)
The problem isn't designers who need of course compensation for their work, but building up an e-commerce stack, per-volume licensing infra, and publicity, leading to "platforms", verticals, concentration, and most commercial fonts being distributed by just two companies (Adobe and Monotype). In other words, middle-men taking all the money away, when easy self-publishing was the entire point of the web.

(Though I've heard Adobe Stock and iStock at least works ok for photographers and graphic artists for now)

Re:Self-host your fonts for better performance by tomcam on Friday December 04, 2020 @07:38AM (#25301583)
How is charging for a font rent seeking?
Re:Self-host your fonts for better performance by cpach on Friday December 04, 2020 @08:38AM (#25302082)
It isn’t :)
Re:Self-host your fonts for better performance by cratermoon on Friday December 04, 2020 @11:21AM (#25304061)
It's rent-seeking if, instead of selling you the font once under a mutually agreeable license, they charge you an ongoing fee to "use" the font under conditions that the foundry controls and can change without re-negotiating the contract. This is especially true if the condition are "you can use for purposes x, y, and z, but if you want to use it for a, b, or c you have to pay a higher rate".
Re:Self-host your fonts for better performance by tomcam on Friday December 04, 2020 @02:48PM (#25306840)
How can they charge you if you don’t agree to the contract?
Re:Self-host your fonts for better performance by cratermoon on Saturday December 05, 2020 @04:09PM (#25318388)
What do you mean? If you agree to the contract when you rented access to the font, you're subject to all its conditions. If you don't want to pay the additional rent, your choice is to break the contract and lose access to the font, or pay up.
Re:Self-host your fonts for better performance by corty on Friday December 04, 2020 @06:44AM (#25301276)
Maybe it does. It isn't poor quality per se, on the first contact those fonts look great. Only prolonged usage will reveal their flaws, and then only if you know what you are looking for. Most buyers won't be so sophisticated, so it can work. Actually, lots and lots of products are sold in such a superficial way.
Re:Self-host your fonts for better performance by anoncake on Friday December 04, 2020 @07:21AM (#25301488)
I'm not surprised at all that it works, I just think something must be broken if it does.
Re:Self-host your fonts for better performance by bzb6 on Friday December 04, 2020 @05:28AM (#25300871)
The cleaner look is because most designers use macOS which renders most fonts in a way that makes them all look good (let’s not get into technical details). On Windows the same fonts might look like shit (for example some parts of a character are thicker than the rest for no apparent reason)
Re:Self-host your fonts for better performance by corty on Friday December 04, 2020 @05:57AM (#25301033)
Well, good is relative. MacOS renders fonts in a weight-and-form-correct way which makes them look blurry however. Windows renders fonts in a weight-and-form-incorrect way, which however makes them sharper and easier to read on screens, especially with resolutions below 200dpi.

Now if you use a high-resolution monitor and print-optimized fonts, MacOS will look better. If you use a low-resolution monitor and screen-optimized fonts, Windows will look better. Problem is, most designers come from print and use expensive Mac gear, so they are designing for a minority, their peers, not their users.

Re:Self-host your fonts for better performance by saurik on Friday December 04, 2020 @06:42AM (#25301268)
Designers primarily designing for other designers is a core problem with the entire field of design and it holds back a lot of society as it seems to really encourage apps having super low information density displays with slow animations.
Re:Self-host your fonts for better performance by alisonkisk on Friday December 04, 2020 @08:29AM (#25302004)
> Problem is, most designers come from print and use

This can't still be true. No one comes from print anymore.

Re:Self-host your fonts for better performance by zinekeller on Friday December 04, 2020 @09:14AM (#25302379)
> This can't still be true. No one comes from print anymore.

It is. The real problem is that a large number of designers like to have a pixel-perfect experience (which on print doesn't really matter as they know what paper will that publication use).

Re:Self-host your fonts for better performance by barrkel on Friday December 04, 2020 @06:23AM (#25301160)
MacOS makes text blurry. You need a high resolution monitor for macOS font rendering to be acceptable.
Re:Self-host your fonts for better performance by martimarkov on Friday December 04, 2020 @06:28AM (#25301193)
Like the one that comes with my laptop or is sold by apple?

I think macOS will always be optimised for the best experience. Even if that means sub par XP if you don’t go all in on money.

I’d actually be interested in learning more about the rendering vs say windows if you have a source.

Re:Self-host your fonts for better performance by II2II on Friday December 04, 2020 @08:31AM (#25302020)
> I think macOS will always be optimised for the best experience.

It is probably better to say that Apple will design for their intended market. I was using Apple products long before HiDPI was a thing and was never particularly happy with the fuzzy fonts under Mac OS X. While that may be acceptable when designing for print, since accuracy is more important, it is an annoyance in many other circumstances.

Re:Self-host your fonts for better performance by hhas01 on Friday December 04, 2020 @09:22AM (#25302455)
Blurry on standard-resolution monitors.

On hi-def monitors and laser-printed page, it is lovely both to read and to look at.

I mean, 4K (3840×2160) 23" displays nowadays start at $300, so if you’re still on hundred-buck 1920x1080 then you’re only getting what you paid for.

Going to all hi-def displays is the single best investment I ever made as a professional programmer, reading and writing text on screens daily.

Re:Self-host your fonts for better performance by canofbars on Friday December 04, 2020 @06:45AM (#25301284)
Its actually incredible how ugly fonts render on windows. After using linux for so long I thought I was experiencing a bug when seeing fonts on windows.
Re:Self-host your fonts for better performance by andybak on Friday December 04, 2020 @06:50AM (#25301313)
Have you got a screenshot? I'm curious as I regularly switch between Windows and MacOS and I'm happy enough with font rendering on both.

In my recollection (and it's been a few years since I used a Linux GUI) Linux was the one with dodgy font rendering.

Re:Self-host your fonts for better performance by jraph on Friday December 04, 2020 @07:12AM (#25301439)
We probably get used to whatever font rendering the systems we use the most have.

To me, fonts indeed look blurry on macOS and weird on Windows. Screenshots from Windows with colored pixels particularly don't look good to me. Though after having seen screens of people using Windows 10, it seems they changed whatever I really didn't like about font rendering on Windows.

I still like font rendering on GNU/Linux (and Android) better it is correctly configured, which it is on widespread distributions with widespread desktop environments (I use a QHD screen). But it could be out of habit. On some configurations, kerning is bad though.

Re:Self-host your fonts for better performance by mook on Friday December 04, 2020 @11:52AM (#25304567)
Perhaps the screenshots you're seeing have ClearType (i.e. sub-pixel anti-aliasing) turned on, and when it got to you (as a picture) the subpixels no longer match on your screen? For example, if one of the screens involved was vertically oriented…
Re:Self-host your fonts for better performance by jraph on Friday December 04, 2020 @12:00PM (#25304713)
This is it. This was more of an aside, it's indeed not supposed to look this way when it's directly rendered on the screen.
Re:Self-host your fonts for better performance by bzb6 on Friday December 04, 2020 @07:11AM (#25301429)
Cleartype is an acquired taste :P
Re:Self-host your fonts for better performance by swiley on Friday December 04, 2020 @08:52AM (#25302192)
Don't tell people this, they'll start making larger fonts.
Re:Self-host your fonts for better performance by ben-schaaf on Friday December 04, 2020 @05:14AM (#25300795)
Both Firefox and Chrome use their own font rendering, regardless of whether you're using system fonts or not.
Re:Self-host your fonts for better performance by zinekeller on Friday December 04, 2020 @05:22AM (#25300842)
Categorically not true in Firefox in default settings, usually disabled by websites in Chrome by using the CSS property "text-rendering: optimizeLegibility" (unless you are somehow in macOS which in this case the default preference is to optimize for precision systemwide anyway).