News for hackers. Stuff that matters.
Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @04:00PM (#18482509)
It took me a while to figure out that links in the text were ALL CAPS instead of underlined and/or blue. The hover effect was so subtle that I didn't notice it at first. I ended up hovering over acronyms pretty often, as I was never sure if those were also links. That is not good design.

There's also the issue that while the site may look pretty, it requires downloading 5 megabytes of CSS.

At every job I've had, designers who talked about typography created more problems than they solved. They picked fonts that were less readable but more unique, "To emphasize our brand." They chose web fonts that hurt page load times and had kerning and hinting issues on platforms besides macOS. They chose thin font weights and gray text colors because those looked nice when viewed indoors on retina displays with young eyes.

Almost every site could be improved by doing less with fonts, not more. For long form text, use a popular serif font. For user interfaces, use the system font stack.[1] Don't ship web fonts except for icons. Most importantly: Use high contrast and normal font weights. Thin gray fonts are extremely hard to read if you're outdoors or using an older/cheaper screen.

1. https://bitsofco.de/the-new-system-font-stack/

Re:Prac­ti­cal Ty­pog­ra­phy by tptacek on Sunday November 18, 2018 @06:06PM (#18482978)
The author of this book probably agrees with most of your critique, apart from the importance of whether or not his book costs you 5Mb to download (I imagine doesn't care so much about that). But most of his recommendations --- many of which distill to "less is more, make careful rather than flashy choices" --- won't cost you a nybble to implement.
Re:Prac­ti­cal Ty­pog­ra­phy by xrayspec on Sunday November 18, 2018 @06:07PM (#18482982)
Respectfully dude, I clicked through to your sites because I was curious to see how you apply your own design advice. It seems that mostly, you don't. Your blog [1] even employs the monochrome, typo-centric style that Butterick seems to like.

[1] https://geoff.greer.fm

Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @07:51PM (#18483444)
What part of my own advice don't I follow? I don't use web fonts. I use a popular serif font (Baskerville[1], falling back to other serif fonts if the user lacks that). I use the default font weight so text isn't too thin. I use high contrast (#000 on #fff) for readability with dim screens or old eyes. Links are underlined to make them obvious in body text. My CSS is 4.7KB, though only 1.8KB is transferred because I use gzip content encoding.

Honestly, I don't think my site looks as good as Butterick's, but I'm not a designer and I didn't spend much time on it. Also, my implementation is 1,000x more efficient.

1. I picked Baskerville because it's slightly more convincing than other fonts: https://opinionator.blogs.nytimes.com/2012/08/08/hear-all-ye...

Re:Prac­ti­cal Ty­pog­ra­phy by omnimus on Monday November 19, 2018 @07:54PM (#18491055)
Just nitpicking - Baskerville 95% people won't have. Even less people will have 'Hoefler Text'. So you end up with most people seeing Georgia - you should focus on that experience. For some reason with Georgia there is gigantic word spacing. Like you would need like word-spacing: -0.6em to get somehow cool. Not sure why it happens on site or if its Georgia.

I see you have gripe with designers but you have to understand few things

1. There is as many bad designers as there is bad programmers. Lot of the companies hire quite unexperienced designers because it sort of works out. Don't forget designers get lot less money then programmers so it might also mean that the quality people are programmers by now.

2. Designing graphics is mostly about putting yourself into someone elses shoes. Nobody else in company has to like the design, important is that your clients do and for that you can gather data. Often you would be suprised what people actually like.

3. I have read this https://geoff.greer.fm/2018/04/02/conserve-vectical-pixels/ and it seems like you want to have very functional approach to design. But you have to realize that function in visual communication is not straightforward. Its not about cramming most of data on page. Empty space is extremely functional element. It might not be so important for you but for most people it is. It establishes hiearchy and helps to rest your eyes. 95% time you are not designing Bloomberg Terminal but some interface people will see for the first time or maybe just from time to time. Things might seem to you super obvious because you spent so many hours with them but thats just not what most of the people get. And i am not even talking about their experiences with the computer itself.

Re:Prac­ti­cal Ty­pog­ra­phy by xrayspec on Sunday November 18, 2018 @08:30PM (#18483580)
> I don't use web fonts.

Well, actually ... yes you do (Proxima Nova). Some of it is even thin!

https://floobits.com/

Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @08:38PM (#18483606)
I thought we were talking about my personal site. Floobits looks the way it does because of a designer. It doesn't reflect my personal tastes very well.

That said, I'll probably fix those fonts soon. Thanks for pointing that out.

Re:Prac­ti­cal Ty­pog­ra­phy by choochootrain on Sunday November 18, 2018 @08:09PM (#18483512)
i think the low contrast in your Geoff.Greer.fm logo and the "go dark" button might be what GP is talking about. i didn't realize the button had words until i saw the hover state had opacity: 1
Re:Prac­ti­cal Ty­pog­ra­phy by lucideer on Monday November 19, 2018 @04:14AM (#18485058)
Respectfully dude, it seems you haven't read the comment you replied to. The only criticism of geoff's site you seem to have is the aesthetic similarly to Butterick's, yet nowhere did he criticise Butterick's style, only its implementation.
Re:Prac­ti­cal Ty­pog­ra­phy by deltron3030 on Sunday November 18, 2018 @05:19PM (#18482801)
The system font stacks might look good on Apple and Google devices, with San Francisco and Roboto being great fonts.

But Gnome's Cantarell for Linux and Segoe on Windows are both very ugly. Dalton Maags Ubuntu font OTOH is quite nice, kinda surprised it's not in the native stack..

The difference in experience between platforms is so great with the native stack that it indicates carelessness for users of platforms that aren't Apple or Google based.

The first thing I'd do in an untouched Gnome or in Windows is replace those fonts, and I'm surely not the only one. "Bahnschrift" is actually a nice replacement for Segoe on Windows, from MS.

Re:Prac­ti­cal Ty­pog­ra­phy by saagarjha on Sunday November 18, 2018 @05:30PM (#18482843)
By utilizing the system font, you’re using a font that the user already spends time staring at for a significant portion of the time they spend interacting with that device. Presumably if they found that font ugly they’d change it, and in doing so your website would change as well.
Re:Prac­ti­cal Ty­pog­ra­phy by deltron3030 on Sunday November 18, 2018 @05:45PM (#18482901)
>Presumably if they found that font ugly they’d change it, and in doing so your website would change as well.

Not everybody with a sense for style is techy enough to change it, or even in a position to do so. E.g. people who are stuck with Windows for work and aren't allowed to mess with the system.

If you use JS and design sites you could check out Typography.js, you can include webfonts through NPM. Performance is better than fetching them from a CDN.

Re:Prac­ti­cal Ty­pog­ra­phy by androidgirl on Monday November 19, 2018 @03:52PM (#18489671)
Ironically, I haven't changed my system font on Linux because the majority of webpages load web fonts.

I did change my terminal to use Hack, however.

Re:Prac­ti­cal Ty­pog­ra­phy by danShumway on Sunday November 18, 2018 @10:45PM (#18484097)
I have issues with these criticisms.

> There's also the issue that while the site may look pretty, it requires downloading 5 megabytes of CSS.

3.4MB, and all but 5KB are web fonts which will be cached across the entire site. And while that's heavy for a normal site, it's probably not all that heavy for site specifically about typography. The extra fonts are included because they're used for interactive examples and comparisons, and downloading fonts is cheaper than downloading images.

Web browsers on limited connections are now smart enough to avoid downloading web fonts (on mobile Firefox, there's just a checkbox in settings you can click to turn them off universally). I honestly can't think of a single case where me checking that box has ever broken a webpage. Opera Mini (which is popular in the parts of the world people are most often referring to when they talk about limited connections) disables web fonts as well, so no harm to those users.

Given that there is a readily available, easy to use, safe, user-controlled solution to your problem, I do not see why forcing everyone to use system fonts helps anyone. If you have a problem with the defaults, go to Firefox/Google and tell them to check the box by default.

> Don't ship web fonts except for icons.

My feeling is that on the web we give control to the user, not the developer. And as mentioned above, you can not trust that your icon fonts will be downloaded, so you should not use fonts for icons. It is almost universally better to use SVG for icons. Your icon font is going to be a wrapper around SVG glyphs anyway, so skip the middleman and ship the glyphs directly -- you can still bundle them into a single SVG if you're worried about multiple network requests.

> At every job I've had, designers who talked about typography created more problems than they solved.

Having read the book, none (or at least very few) of the issues you're talking about apply here. The default fonts are heavy and have high contrast (with the exception of footnotes, fair point). They render well on Linux and Windows. They're large and display well on small screens. The book actually goes into detail about a number of your issues, talking about why bad color and unreadable "brand" fonts are a problem. The biggest valid criticism I see here is that links aren't underlined, which... yeah, there are probably better ways to do that, but underlined links do genuinely interrupt reading flow. I view that criticism as a matter of opinion.

Re:Prac­ti­cal Ty­pog­ra­phy by SSLy on Sunday November 18, 2018 @04:04PM (#18482522)
Don't ship icons as fonts either. SVG was made for a reason.
Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @04:22PM (#18482610)
I agree that icon fonts are a hack, but the web is made of countless hacks. This specific one seems benign. Users won't notice or care whether you use icon fonts or images. Icon fonts are approximately the size of the equivalent images, they work alright across platforms, and they're pretty easy to use and deploy.
Re:Prac­ti­cal Ty­pog­ra­phy by danShumway on Sunday November 18, 2018 @10:51PM (#18484118)
It's not benign -- icon fonts are bad for accessibility because screen readers will read out the actual glyph unless you use pseudo-elements or extra markup. Additionally, many users on limited connections will turn off web fonts, and then your icons will break.

It's a hack that was necessary at one point, but has been largely displaced, like table layouts or image-based drop-shadows. SVG is just better nowadays[0]. You can even use the same pseudo-element tricks to insert them purely in CSS, which is yet another accessibility win.

[0]: https://css-tricks.com/icon-fonts-vs-svg/

Re:Prac­ti­cal Ty­pog­ra­phy by RandomInteger4 on Sunday November 18, 2018 @05:12PM (#18482772)
Maybe I'm mistaken, but f I recall correctly, I think the issue with icons as font was accessibility, rather the average user with full sensory capabilities.
Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @05:17PM (#18482792)
Similar to icon images, you'd use aria-label, aria-hidden, and title attributes.
Re:Prac­ti­cal Ty­pog­ra­phy by anoncake on Tuesday November 20, 2018 @11:57AM (#18495312)
At least in Firefox, the user can enforce their font preferences and ignore the fonts specified by the web page. Icon fonts break that.
Re:Prac­ti­cal Ty­pog­ra­phy by pcwalton on Sunday November 18, 2018 @09:14PM (#18483739)
> They chose web fonts that hurt page load times and had kerning and hinting issues on platforms besides macOS.

Could you elaborate? macOS doesn't typically do TrueType or CFF hinting. Kerning should be identical for modern rasterizers on all platforms nowadays.

Re:Prac­ti­cal Ty­pog­ra­phy by ggreer on Sunday November 18, 2018 @09:35PM (#18483821)
That was exactly the problem. The web font (a variant of Open Sans) had bad TrueType hinting, which macOS ignored. I viewed the site using Edge and it almost looked as if all antialiasing and subpixel rending was disabled.
Re:Prac­ti­cal Ty­pog­ra­phy by aasasd on Sunday November 18, 2018 @10:00PM (#18483935)
TIL TrueType was developed by Apple, already with hinting as far as I can tell. Apparently the Mac font renderer ignores most of the hints but not all.
Re:Prac­ti­cal Ty­pog­ra­phy by pcwalton on Sunday November 18, 2018 @10:02PM (#18483940)
Apple's rasterizer doesn't do grid fitting, which essentially means it ignores the hinting instructions, but it does do pixel snapping in some cases.
Re:Prac­ti­cal Ty­pog­ra­phy by mrhappyunhappy on Sunday November 18, 2018 @06:23PM (#18483056)
In my many years of design and development I have NEVER seen a 5mb css file, yet alone one as a result of a custom font.

If we left typography up to developers then we’d have the web equivalent of Linux - “good enough”.

Typography has a place in design. What you see with grey thin fonts is amateur work by designers who follow trends. To generalize this observation to the whole of design is not fair.

Re:Prac­ti­cal Ty­pog­ra­phy by jimbo1qaz on Monday November 19, 2018 @06:41AM (#18485701)
I prefer when websites use "serif" or "sans-serif" (as opposed to "system font stacks") and respect my personal font choices. Sadly some people never change them from Times/New Roman and Arial.
Re:Prac­ti­cal Ty­pog­ra­phy by Cenk on Monday November 19, 2018 @11:05AM (#18487329)
Some people? I’d warrant >95% of people not only have never touched that settings, they also don’t know that is exists or what it does
Re:Prac­ti­cal Ty­pog­ra­phy by pvorb on Monday November 19, 2018 @04:07PM (#18489769)
That's probably also because Times and Arial are perfectly valid defaults.
Re:Prac­ti­cal Ty­pog­ra­phy by Sharlin on Monday November 19, 2018 @06:36AM (#18485668)
> It took me a while to figure out that links in the text were ALL CAPS instead of underlined and/or blue.

Nitpicking, but in this context I can't help myself: they're not ALL CAPS but sᴍᴀʟʟ ᴄᴀᴩs instead :)