September 10th, 2024

What you can get out of a high-quality font

The article highlights the advantages of OpenType fonts, focusing on variable fonts, their features like variable axes and contextual alternates, and the effective use of CSS properties for web typography.

Read original articleLink Icon
CuriosityAppreciationFrustration
What you can get out of a high-quality font

The article discusses various features of high-quality fonts, particularly focusing on OpenType fonts and their capabilities. It highlights the advantages of using variable fonts, which can consolidate multiple styles into a single file, allowing for greater flexibility in typography. Key features include variable axes that adjust font appearance, alternates for different glyph styles, and stylistic sets that enhance character differentiation. The article also covers numerals, small caps, and contextual alternates, which automatically adjust glyphs based on surrounding characters. It emphasizes the importance of using CSS properties effectively to manipulate these features while avoiding issues with inheritance. The author encourages exploring the full potential of OpenType features to enhance typography in web design.

- High-quality fonts offer various features, including variable axes and alternates.

- OpenType fonts can consolidate multiple styles into a single file for flexibility.

- CSS properties can be used to manipulate font features, but care must be taken with inheritance.

- Contextual alternates automatically adjust glyphs based on surrounding characters.

- Understanding and utilizing these features can significantly improve web typography.

AI: What people are saying
The comments reflect a diverse range of opinions and insights regarding OpenType fonts and their features.
  • Many users appreciate the value of advanced features like tabular numerals and contextual alternates in typography.
  • There are concerns about the limitations of font files available on platforms like Google Fonts, which often strip advanced OpenType features.
  • Several commenters share resources and tools for exploring font features, such as Wakamai Fondue and fontdrop.info.
  • Some express skepticism about the necessity of complex font controls for web design, suggesting a preference for simplicity and system fonts.
  • Overall, there is a mix of enthusiasm for typography innovations and caution regarding their practical application in web design.
Link Icon 21 comments
By @rob74 - 7 months
> Since such numerals line up when typed on multiple lines, they're useful in, well, tabular data: tables, bills, reports, you name it.

Or things like showing a clock, countdown, whatever. A time that "jumps around" on the screen from one second to the next annoys the hell out of me...

By @TheRealPomax - 7 months
The real power of variable axes is that it's not related to weight in the slighted. That's the most obvious use-case, but it's just a mechanism to control "which points in a glyph's outline go where based on what one or more variables are set to", so just using it to change weight is... kinda obvious and boring? Let's kick it up a notch:

https://v-fonts.com/fonts/extendomatic-variable

https://v-fonts.com/fonts/tatras-shaded

https://v-fonts.com/fonts/wavefont

By @airstrike - 7 months
Tabular numerals are such a valuable feature. It's a bummer they're not more prevalent.
By @bobbylarrybobby - 7 months
Have a font file you want to investigate? See if it supports whatever features? https://wakamaifondue.com is your friend
By @jsheard - 7 months
Caveat: Google Fonts, and by extension Fontsource which mostly just mirrors Googles files, strips out nearly all of the advanced OpenType features to reduce the filesize. It's worth checking the upstream version of your font to see which features it actually offers.

e.g. Wakamai Fondue lists 11 features for Googles version of Inter (some essential ones plus fractions, tabular numbers, numerators, denominators and contextual alts), while the full fat version of Inter has a whopping 44 features (too many to list, see https://rsms.me/inter/).

By @willcodeforfoo - 7 months
Nothing really to add... other than the type on that page looks gorgeous.
By @bloopernova - 7 months
Not really related: to get VSCode to support comments, jsdocs, other syntax highlighting features using different fonts, you will probably have to use the extension vscode-custom-css from be5invis: https://github.com/be5invis/vscode-custom-css

Mine is:

  .mtki {
    font-family: 'IosevkaNFM-ExtraLightItalic', monospace !important;
    font-style: italic !important;
    color: #757575 !important;
  }

  .comment {
    font-family: 'IosevkaNFM-ExtraLightItalic', monospace !important;
    font-style: italic !important;
    color: #757575 !important;
  }

  .comment:not(.punctuation) {
    font-family: 'IosevkaNFM-ExtraLightItalic', monospace !important;
    font-style: italic !important;
    color: #757575 !important;
  }
Which looks like the last picture in this comment: https://github.com/microsoft/vscode/issues/36512#issuecommen...

Just be prepared to experiment a lot, VSCode's (Electron's?) font handling is buggy.

Why are font features so difficult to support correctly?

By @kstrauser - 7 months
This was my nudge to see if Berkeley Mono v2 is out yet.

It is not.

By @keybored - 7 months
Small caps looks slick. I wish more websites used it.
By @hammock - 7 months
What is going on with the wght (weight) axis? When I slide to the left of 400, the text condenses as it gets thinner. But to the right of 400, the text does not expand, it just gets thicker. So it would not appear to be a continuous variable, as the slider would suggest.
By @ashton314 - 7 months
If you like typography, check out Butterick's Practical Typography: https://practicaltypography.com/ It's full of good, pragmatic advice on how to make printed and digital documents look wonderful.

I've bought two fonts from him and his font license is easily the most permissive of any paid professional font I've seen: no restrictions on the number of page views or anything, unlike most other pro fonts. Are his fonts open source? No. Are there good open source fonts? Of course. But are his fonts beautiful? You bet. I've got Valkyrie and Concourse. Concourse is particularly flexible when it comes to contextual alternatives and such.

By @umaar - 7 months
I made a video showcasing some advanced techniques to use fonts on the web, without compromising performance. Covers interesting font metrics like ascenders and descenders. Fascinating to see how much information is contained within a font file!

https://www.youtube.com/watch?v=wSOIbdOaKR8

By @wseqyrku - 7 months
Fascinating that it's just now that someone got curious about this enough to write a post. I know if you looked for it you'd probably find this stuff but it is definitely scarce IMO. Thing is, not enough developers and designers that worked on this for many years bother to blog about it perhaps for reasonable reasons but still.
By @system2 - 7 months
Maybe for print, it is important but for the web, we must stick to system fonts for SEO and speed.
By @sdwrj - 7 months
Crazy how most fonts don't support any of this... (update: oops, I'm wrong!)
By @Gualdrapo - 7 months
I'm a bit surprised as I thought this was common knowledge for web designers and developers.

Though to check the features or variable ranges of an OpenType file, you can use something like fontdrop.info.

By @Sparkyte - 7 months
Beautiful letters?

Or ugly ones I want some high-quality Comic Sans font.

That live demo on the page is solid by the way.

By @pbronez - 7 months
TIL several useful things about typefaces!
By @jfdjkfdhjds - 7 months
as a designer by education, this level of font control for web is delusional. and mostly a waste of time (both for the designers and the users receiving on unexpected screen ratios/resolutions/tech/era/etc and getting a worse experience if the designers hadn't wasted the time)

this brings me bad memories from the time websites were done by "desktop publishing" designers and html was crafted "pixel perfect" (with tables)

thankfully I can easily be a curmudgeon and just set all sites to use my favorite fixed width font and disable the designers choice with one checkbox on firefox.