3 ms·
As others pointed out, font hinting is solving a completely different problem from the one that Apple faces or that you describe. You describe the problem of di
by etangent 11y ago
As others pointed out, font hinting is solving a completely different problem from the one that Apple faces or that you describe. You describe the problem of displaying small text on a low-resolution grid. Font hinting is indeed a passable solution to that problem. However Apple's problem is displaying small text, period (Retina displays have plenty of resolution). The first sentence of the top link you give, "A quality outline font is one that provides legibility at small sizes on low resolution devices" tells us why this is not relevant. Nobody cares about low-resolution devices anymore. Apple set out to make things legible assuming infinite resolution.
- esrauch 11y agoMaybe we should have a hinting equivalent for physical size then (rather than pixel hinting or an entirely different font).
- jacobolus 11y agoAdobe used to have this feature in their typeface format and type design tools in the 1990s. The format was called “Multiple Master”, see https://en.wikipedia.org/wiki/Multiple_master_fonts https://en.wikipedia.org/wiki/Multiple_master_fonts and http://blog.typekit.com/2014/07/30/the-adobe-originals-silver-anniversary-story-how-the-originals-endured-in-an-ever-changing-industry/ http://blog.typekit.com/2014/07/30/the-adobe-originals-silve.... (Metafont also has this feature.) In practice, type designers found that making such fonts took dramatically more work, and typographers/publishers weren’t willing to pay commensurately more money. So it didn’t see much adoption outside Adobe. As a result, the format died out, and we stuck with descendants of the original PostScript font format. More recently, many companies (but especially Adobe) ship “pro” typefaces with separate fonts for various “optical sizes”. Again, producing these takes a lot of extra work, so most type designers don’t bother with it, and because it is designed to work with standard tools (which don’t have special knowledge of the feature), typographers/designers must explicitly choose which optical size they want to use in each context. So in theory it’s inferior to the Multiple Master format, but in practice it is backwards compatible, which ends up being more important. Apple can solve this problem for their UI fonts specifically, because they have full control. Unfortunately, they haven’t offered these features for use with other typefaces.
- a_e_k 11y agoI believe that's already possible with TrueType now if the person doing the hinting is willing to make the effort. TrueType hints are restricted programs stored as bytecode. One instruction, MPPEM, requests the pixels per em. Another instruction, MPS, gets the current point size. There are also instructions to find pixel lengths across various axes. I'd have to think about the details but it should be possible to estimate the DPI and physical glyph size from those and then adjust the hinting accordingly.
- jacobolus 11y agoTrueType hints are not used in many contexts, or are not used consistently. So this isn’t useful in practice. Also, I don’t believe that TT hints can handle the range of letter-form and spacing changes required to properly scale from small captions up to large headings.
- damieng 11y agoFont hinting lets you move points around based on sizes, dpi and rendering modes using a stack-based bytecode language. Sure the primary use case for many years was to cope with low-resolution but it can be used in the way the poster above described. In fact you can use it in the other direction too so that larger sizes take on more specific characteristics instead of having two fonts and a hack that switches at 20pt like they're doing with San Francisco. Source: Have actually TrueType hinted fonts.
- ZeroGravitas 11y agoSwitching between two fonts in different circumstances seems like less of a hack than embedding some kind of Virtual Machine into your font engine with all the security issues that follow.
- damieng 11y agoThe language is elegant, lets you perform tweaks down to an individual level and works across many platforms and can be used in any font. It's totally possible to create a safe virtual machine for specific uses. There have been many attack vectors for fonts over the years due to the complexity in parsing them. I do not recall any of them being due to the hinting language. The Mac one is hard coded for a single OS and font combination and a specific size down in the operating system. I disagree that the later is less of a hack.