Are you certain that your choice and implementation of fonts on the web is living up to your expectations? Shared at WebVisions Portland 2014, Jim Kidwell goes through what makes good use of fonts on the web.
8. http://extens.is/webv
How to prevent suckage
1. Define your audience
2. Use real web fonts
3. Examine your fonts carefully
4. Implement it properly
5. Test the features
20. http://extens.is/webv
Real web fonts
• Come from a server
• Provides brand consistency
• Allow easily updated text
• Can be made responsive with media queries
28. http://extens.is/webv
Good fonts compensate for the
tricks our eyes play
• Point placement
• Spacing
• Kerning
• Overshoot
• Stroke interactions
• Straight to curve
transitions
• Round vs. straight
• Caps vs. lowercase
• Even weight
• Stretching
• Midline position
• Perfect circles
https://www.commarts.com/columns/know-font-sucks.html
40. http://extens.is/webv
Bigger Body Text
• Legible ≠ Comfortable!
• Most web text unnecessarily small
• Average 9–12 px
• Suggested default: 14–16 px
• Ideal size varies by font
• Different x-height
• Minimum legible varies
41. http://extens.is/webv
Limit & Control Line Length
• Impacts reading comfort
• Aim for 55–75 characters/line
• Type size ×30 is a good start
• width: 30em;
• Or, use max
• max-width: 30em;
42. http://extens.is/webv
Use OpenType features in CSS
• Contextual Alternates
• Ligatures
• Contextual Ligatures
• Kerning
• OptimizeLegibility (Older Browser Support)
http://blog.webink.com/opentype-features-css/
43. http://extens.is/webv
Use OpenType features in CSS
• OpenType is font file type
• OpenType features ≠ file type
• Not all features are in all fonts
http://blog.webink.com/opentype-features-css/
44. http://extens.is/webv
Use OpenType features in CSS
body {
-moz-font-feature-settings:"calt", "liga", "clig", "kern";
-moz-font-feature-settings:"calt=1, liga=1, clig=1, kern=1";
-ms-font-feature-settings:"calt", "liga", "clig", "kern";
-o-font-feature-settings:"calt", "liga", "clig", "kern";
-webkit-font-feature-settings:"calt", "liga", "clig", "kern";
font-feature-settings:"calt", "liga", "clig", "kern";
text-rendering:optimizeLegibility;
}
http://blog.webink.com/opentype-features-css/