Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Finding Your Type: Using The Right Fonts For Your WordPress Website

Amber Hewitt
November 10, 2019

Finding Your Type: Using The Right Fonts For Your WordPress Website

Readability is a very important part to every website and yet it is taken for granted. Choosing the right font can make all the difference in any design. Learn how to select the right type, design your fonts correctly, and add them to your WordPress website.

Amber Hewitt

November 10, 2019
Tweet

More Decks by Amber Hewitt

Other Decks in Design

Transcript

  1. Finding Your Type
    Using The Right Fonts
    For Your WordPress Website

    View full-size slide

  2. Typography Demo Code:
    https://codepen.io/amberrhewitt

    View full-size slide

  3. Typography Basics
    1

    View full-size slide

  4. Web design is
    95% typography
    Oliver Reichenstein

    View full-size slide

  5. Typography must often
    draw attention to itself
    before it will be read.

    View full-size slide

  6. Yet in order to be read,

    it must relinquish

    the attention it has drawn.

    View full-size slide

  7. Legibility doesn’t
    equal readability

    View full-size slide

  8. Just because you can read
    the text doesn’t mean
    your readers can.

    View full-size slide

  9. Common Classifications

    View full-size slide

  10. Tracking (Letter Spacing)
    Hamburge
    Hamburge
    Hamburge

    View full-size slide

  11. Kerning (Space Between Letters)
    Hamburge
    H amburge

    View full-size slide

  12. Leading (Line Height)
    Lorem ipsum dolor sit amet, consectetur
    adipiscing elit. In in tempus metus, sit
    amet aliquam nunc. Ut pharetra
    condimentum diam quis eleifend. Nunc
    fringilla quam magna, sit amet gravida
    elit malesuada varius.
    Lorem ipsum dolor sit amet, consectetur
    adipiscing elit. In in tempus metus, sit
    amet aliquam nunc. Ut pharetra
    condimentum diam quis eleifend. Nunc
    fringilla quam magna, sit amet gravida
    elit malesuada varius.

    View full-size slide

  13. Italic & Oblique
    regular
    italic
    oblique (faux italic)

    View full-size slide

  14. Choosing the Right Fonts
    Know your context…

    View full-size slide

  15. Choosing the Right Fonts
    • What are you trying to convey?
    • Is it long-form reading or short bursts of text?
    • Use word association: powerful, playful,

    innocent, handmade, industrial, etc.
    • Is it appropriate?

    View full-size slide

  16. Pairing Fonts
    • Look for distinction
    • Look for harmony
    • Some fonts have a sans and serif 

    (Freight Sans Pro & Freight Text Pro)
    • Look at other websites for good 

    font pairings
    • Do you need more than one font?

    View full-size slide

  17. Setting Your Type
    • Type Size

    (16px for mobile, 18-22px for desktop)
    • Line-width

    (45-75 characters wide)
    • Line-height

    (for reading comfort)
    • Type color & contrast

    (for readability and accessibility)

    View full-size slide

  18. Setting Your Type
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge
    Hamburge

    View full-size slide

  19. Headings
    Use a modular scale

    View full-size slide

  20. Breathing room
    (a.k.a. white space)

    View full-size slide

  21. Don’t be afraid
    to experiment

    View full-size slide

  22. …but make sure
    there’s a logical reason
    for your design.

    View full-size slide

  23. SANS-SERIF
    Open Sans
    Proxima Nova
    Lato
    Avenir
    Brandon Grotesque
    Fira Sans
    SERIF
    Garamond
    Georgia
    Freight Text
    Merriweather
    Kepler
    Libre Baskerville

    View full-size slide

  24. The best kind of originality is that
    which comes after a sound
    apprenticeship, that which shall prove
    to be the blending of a firm conception
    of useful precedent and the progressive
    tendencies of an able mind.
    The best kind of originality is that
    which comes after a sound
    apprenticeship, that which shall prove
    to be the blending of a firm conception
    of useful precedent and the progressive
    tendencies of an able mind.
    #000 #FFF

    View full-size slide

  25. The best kind of originality is that
    which comes after a sound
    apprenticeship, that which shall prove
    to be the blending of a firm conception
    of useful precedent and the progressive
    tendencies of an able mind.
    The best kind of originality is that
    which comes after a sound
    apprenticeship, that which shall prove
    to be the blending of a firm conception
    of useful precedent and the progressive
    tendencies of an able mind.
    #333 #CCC

    View full-size slide

  26. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in tempus metus, sit amet aliquam nunc. Ut pharetra condimentum diam quis
    eleifend. Nunc fringilla quam magna, sit amet gravida elit malesuada varius. Aenean justo neque, lobortis at nisi id, cursus dapibus odio. Nunc
    sed fermentum elit, nec pharetra sapien. Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem. Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
    Vivamus pharetra facilisis congue. Etiam sit amet felis placerat, vehicula nibh ut, blandit eros. Phasellus malesuada elementum diam et
    commodo.
    Text is too small

    View full-size slide

  27. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in tempus metus, sit amet aliquam nunc. Ut
    pharetra condimentum diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit malesuada varius.
    Aenean justo neque, lobortis at nisi id, cursus dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem. Aenean eleifend arcu vitae varius pretium.
    Proin ac tempor purus. Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum ante ipsum primis in
    faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada elementum diam et commodo.
    Line length is too long

    View full-size slide

  28. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.
    Line height is too close

    View full-size slide

  29. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.

    View full-size slide

  30. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.
    Aligned Center - Too Hard To Read

    View full-size slide

  31. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.
    Never Justify!

    View full-size slide

  32. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.
    Never Indent!

    View full-size slide

  33. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend. Nunc fringilla quam magna, sit amet gravida elit
    malesuada varius. Aenean justo neque, lobortis at nisi id, cursus
    dapibus odio. Nunc sed fermentum elit, nec pharetra sapien.
    Praesent fermentum diam a purus rutrum tristique.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt. Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
    Curae; Vivamus pharetra facilisis congue. Etiam sit amet felis
    placerat, vehicula nibh ut, blandit eros. Phasellus malesuada
    elementum diam et commodo.
    Hello World

    View full-size slide

  34. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In in
    tempus metus, sit amet aliquam nunc. Ut pharetra condimentum
    diam quis eleifend.
    • Nunc fringilla quam magna, sit amet malesuada varius.
    • Aenean justo neque, lobortis at nisi id, cursus dapibus odio.
    Fusce posuere sodales pellentesque. Praesent nec tempus sem.
    Aenean eleifend arcu vitae varius pretium. Proin ac tempor purus.
    Vestibulum sed tortor eu velit sollicitudin tincidunt.
    Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
    posuere cubilia Curae; Vivamus pharetra facilisis congue. Etiam sit
    amet felis placerat, vehicula nibh ut, blandit eros. Phasellus
    malesuada elementum diam et commodo.
    Hello World

    View full-size slide

  35. Where to Get Fonts
    2

    View full-size slide

  36. Hosted
    vs.
    Self-Hosted

    View full-size slide

  37. Hosted
    With a hosted license, you reference a CSS resource link
    in the body of your HTML (or CSS) and the font provider
    serve the fonts to your site from their content-delivery
    network.

    View full-size slide

  38. Self-Hosted
    With a self-hosted license, you download the web font
    files from the font provider and host them on your
    servers.

    View full-size slide

  39. Hosted (Subscriptions)
    Google Fonts (free)
    Adobe Typekit (free & paid)
    Fonts.com (free & paid)
    Cloud.typography (paid)
    Type Network (paid)

    View full-size slide

  40. Self-Hosted
    Google Fonts (free)
    Type Network (paid)
    MyFonts (free & paid)
    Linotype (paid)
    FontShop (free & paid)

    View full-size slide

  41. Loading Fonts
    3

    View full-size slide

  42. Font File Types
    .eot (only for Internet Explorer)
    .svg (deprecated; no longer in use)
    .ttf (TrueType Font)
    .woff (2nd best option)
    .woff2 (1st best option)

    View full-size slide

  43. Loading Fonts
    Loading fonts from your server in CSS (self-hosted)
    @font-face {

    font-family: Elena, serif;

    src: url(elena-regular.woff2) format(“woff2”),

    url(elena-regular.woff) format(“woff”),

    url(elena-regular.otf) format(“opentype”);

    font-weight: normal;

    }

    View full-size slide

  44. Loading Fonts
    Another example:
    @font-face {

    font-family: ‘Fanwood Text’, serif;

    src: url(fanwood_text.woff2) format(“woff2”),

    url(fanwood_text.woff) format(“woff”),

    url(fanwood_text.otf) format(“opentype”);

    font-weight: normal;

    }

    View full-size slide

  45. Loading Fonts
    Italic font:
    @font-face {

    font-family: ‘Fanwood Text’, serif;

    src: url(fanwood_text_italic.woff2) format(“woff2”),

    url(fanwood_text_italic.woff) format(“woff”),

    url(fanwood_text_italic.otf) format(“opentype”);

    font-weight: normal;

    font-style: italic;

    }

    View full-size slide

  46. Loading Fonts
    Bold font:
    @font-face {

    font-family: ‘Open Sans’, serif;

    src: url(open_sans_bold.woff2) format(“woff2”),

    url(open_sans_bold.woff) format(“woff”),

    url(open_sans_bold.otf) format(“opentype”);

    font-weight: bold; /* Or use 700 */

    }

    View full-size slide

  47. Loading Fonts
    Conditional Loading (selecting characters):
    @font-face {

    font-family: Spumante;

    src: url(spumante.woff) format(“woff”)

    unicode-range: U+26; /* Only loads the ampersand ‘&’ */

    }
    U+26, U+23 (loads ‘&’ and ‘#’ characters)

    U+30-39 (all latin digits)

    U+2? (wildcard: selects the range U+20-2F)
    Other Unicode Examples:

    View full-size slide

  48. Google Fonts

    View full-size slide

  49. Adobe Fonts (formerly Typekit)

    View full-size slide

  50. Adobe Fonts (formerly Typekit)
    Plugin: Custom Adobe Fonts (Typekit)

    View full-size slide

  51. Using Fonts in CSS
    4

    View full-size slide

  52. CSS Font Properties
    font-family: Choosing a font (Helvetica, Open Sans)

    generic-family: serif, sans-serif, cursive, fantasy, monospace
    font-family: "Open Sans", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
    body { font-size: 18px; }
    p { font-size: 1em; }
    h1 { font-size: 2.75em; }
    font-size: The size of the font (px, em, rem)

    View full-size slide

  53. CSS Font Properties
    font-style: normal, italic, or oblique
    font-weight: The weight of the font 

    (e.g. normal, bold, 100-900)
    text-align: Aligning the text (left, center, right, justified)
    text-transform: Changing the case of your text
    (lowercase, uppercase, capitalize)

    View full-size slide

  54. CSS Font Properties
    text-shadow: Adding a shadow to your text
    .shadow { text-shadow: 2px 2px 6px rgba(50, 50, 80, 0.5); }

    View full-size slide

  55. CSS Font Properties
    line-height: The spacing between the lines of text (leading)
    p { line-height: 1.4em; }
    h1 { letter-spacing: 0.08em; }
    letter-spacing: The spacing between the letters 

    (kerning, tracking)

    View full-size slide

  56. 1 Typography Basics
    Where to Get Fonts
    Loading Fonts
    Using Fonts in CSS
    2
    3
    4

    View full-size slide

  57. Resources
    Better Web Typography (free email course)

    betterwebtype.com
    Webfont Handbook by Bram Stein

    abookapart.com/products/webfont-handbook
    HTML Arrows (Codes for special characters)

    htmlarrows.com

    View full-size slide

  58. Resources
    Typewolf

    typewolf.com
    Type Scale (Calculator for sizing headings)

    type-scale.com
    WhatFont (Chrome extension for identifying fonts)

    ambr.in/3ORKkk

    View full-size slide

  59. Amber Hewitt
    amberhewitt.com
    @amberrhewitt

    View full-size slide