Slide 1

Slide 1 text

2 Typography W O R K S H O P

Slide 2

Slide 2 text

Where to Get Fonts 1

Slide 3

Slide 3 text

Hosted vs. Self-Hosted

Slide 4

Slide 4 text

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.

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

HOSTED (SUBSCRIPTIONS) Google Fonts (free) Adobe Typekit (free & paid) Fonts.com (free & paid) Cloud.typography (paid) Type Network (paid)

Slide 7

Slide 7 text

SELF-HOSTED Google Fonts (free) Type Network (paid) MyFonts (free & paid) Linotype (paid) FontShop (free & paid)

Slide 8

Slide 8 text

Loading Fonts 2

Slide 9

Slide 9 text

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)

Slide 10

Slide 10 text

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;
 }

Slide 11

Slide 11 text

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;
 }

Slide 12

Slide 12 text

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;
 }

Slide 13

Slide 13 text

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 */
 }

Slide 14

Slide 14 text

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:

Slide 15

Slide 15 text

GOOGLE FONTS

Slide 16

Slide 16 text

GOOGLE FONTS

Slide 17

Slide 17 text

GOOGLE FONTS

Slide 18

Slide 18 text

TYPEKIT

Slide 19

Slide 19 text

TYPEKIT

Slide 20

Slide 20 text

TYPEKIT

Slide 21

Slide 21 text

TYPEKIT Plugin: Typekit Fonts for WordPress

Slide 22

Slide 22 text

Using Fonts in CSS 3

Slide 23

Slide 23 text

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)

Slide 24

Slide 24 text

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)

Slide 25

Slide 25 text

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

Slide 26

Slide 26 text

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)

Slide 27

Slide 27 text

1 Where to Get Fonts Loading Fonts Using Fonts in CSS 2 3

Slide 28

Slide 28 text

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 Typewolf
 typewolf.com

Slide 29

Slide 29 text

RESOURCES Type Scale (Calculator for sizing headings)
 type-scale.com Typecast (test fonts for free)
 typecast.com WhatFont (Chrome extension for identifying fonts on websites)
 ambr.in/3ORKkk

Slide 30

Slide 30 text

Thank you!