Conquer Variable Web Typography

A presentation at Frontend Conference in August 2018 in Zürich, Switzerland by Oliver Schöndorfer

Slide 1

Slide 1

Conquer Variable Web Typography Venn by Dalton Maag

Slide 2

Slide 2

86/60 Oliver Schöndorfer ! glyphe

Slide 3

Slide 3

! glyphe

Slide 4

Slide 4

! glyphe

Slide 5

Slide 5

18 font files 632 KB for web fonts only ! glyphe

Slide 6

Slide 6

1 font file 56 KB overall size ! glyphe

Slide 7

Slide 7

How to get started with variable fonts 1. What are variable fonts? 2. Using variable fonts on the web 3. Good times 4. Hard times 5. Getting started ! glyphe

Slide 8

Slide 8

What are variable fonts? Voto Serif by Google

Slide 9

Slide 9

Aa Aa Aa Aa Aa Light Regular Medium Bold X-Bold ! glyphe

Slide 10

Slide 10

Aa Aa Aa Aa Aa Light Regular Medium Bold X-Bold ! glyphe

Slide 11

Slide 11

Aa Aa Aa Aa Aa Variable font file ! glyphe

Slide 12

Slide 12

A ! glyphe

Slide 13

Slide 13

A ! glyphe

Slide 14

Slide 14

Aa Aa Aa Aa Aa Interpolation ! glyphe

Slide 15

Slide 15

Named instances Aa Light Aa Regular Aa Medium Aa Bold Aa X-Bold Optional designs in between ! glyphe

Slide 16

Slide 16

Aa Aa Aa Aa Aa weight axis ! glyphe

Slide 17

Slide 17

width axis Aa Aa Aa Aa Aa Aa Aa Aa Aa ! glyphe

Slide 18

Slide 18

width axis Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa weight axis ! glyphe

Slide 19

Slide 19

Using variable fonts on the web Output Sans by DJR

Slide 20

Slide 20

70 % Global support  " MacOS 10.13 iOS 11.2 Windows 10 $ % & ' Safari 11 Chrome 62 Edge 17 Firefox 62 ! glyphe

Slide 21

Slide 21

Discover new variable fonts try them out, see where to get them v-fonts.com ! glyphe

Slide 22

Slide 22

@font-face { Will become the standard font-family: 'Venn'; src: url('Venn.woff2') format('woff2-variations'), url('Venn.woff2') format('woff2'); } Fallback for the others ! glyphe

Slide 23

Slide 23

  1. Select font or drop font file
  2. See available axes and ranges axis-praxis.org ! glyphe

Slide 24

Slide 24

5 wght wdth ital slnt opsz registered axes ! glyphe

Slide 25

Slide 25

Source Serif Variable by Adobe ! glyphe

Slide 26

Slide 26

font-weight: 327; font-variation-settings: "wght" 327; Source Serif Variable by Adobe ! glyphe

Slide 27

Slide 27

font-weight: 327; High-level property will become standard with CSS 4 Font Module font-variation-settings: "wght" 327; Low-level property supported by all participating browsers now ! glyphe

Slide 28

Slide 28

Venn by Dalton Maag ! glyphe

Slide 29

Slide 29

font-stretch: 78%; font-variation-settings: "wdth" 78; Venn by Dalton Maag ! glyphe

Slide 30

Slide 30

Output Sans by David Jonathan Ross ! glyphe

Slide 31

Slide 31

font-style: oblique 10deg; font-variation-settings: "slnt" 10; Output Sans by David Jonathan Ross ! glyphe

Slide 32

Slide 32

Optical Sizing Axis Voto Serif by Google ! glyphe

Slide 33

Slide 33

Low contrast for small sizes 12px Voto Serif by Google High contrast for large sizes 24px 48px 72px ! glyphe

Slide 34

Slide 34

font-optical-sizing: auto; font-variation-settings: "opsz" 72; Voto Serif by Google ! glyphe

Slide 35

Slide 35

Decovar by FontBureau ! glyphe

Slide 36

Slide 36

font-variation-settings: "TRMC" 1000, "SKLA" 400, Decovar by FontBureau "SKLB" 800, … ! glyphe

Slide 37

Slide 37

Golden times Lab DJR by DJR

Slide 38

Slide 38

sz-magazin.sueddeutsche.de ! glyphe

Slide 39

Slide 39

sz-magazin.sueddeutsche.de 23 KB PT Serif Regular 23 KB PT Serif Bold 24 KB PT Serif Italic 36 KB Work Sans Regular 39 KB Work Sans Medium 39 KB Work Sans SemiBold 52 KB Work Sans Bold 166 KB ! glyphe

Slide 40

Slide 40

Work Sans Regular Work Sans Medium Work Sans SemiBold 166 KB Work Sans Bold Work Sans Variabel? sz-magazin.sueddeutsche.de ~80 KB ! glyphe

Slide 41

Slide 41

dstype.com/variable-fonts ! glyphe

Slide 42

Slide 42

dstype.com/variable-fonts ! glyphe

Slide 43

Slide 43

! glyphe

Slide 44

Slide 44

! glyphe

Slide 45

Slide 45

On narrow screens condensed font to fit more characters into one line ! glyphe

Slide 46

Slide 46

On wide screens expanded font ! glyphe

Slide 47

Slide 47

! glyphe

Slide 48

Slide 48

% Chrome h1 { font-size: 20vmax; } h2 { font-size: 11vmax; } h3 { font-size: 5vmax; } Output Sans Hairline by DJR ! glyphe

Slide 49

Slide 49

Output Sans Hairline by DJR ! glyphe

Slide 50

Slide 50

$ Safari font-optical-sizing: auto; supported by default Output Sans Hairline by DJR ! glyphe

Slide 51

Slide 51

Output Sans Hairline by DJR ! glyphe

Slide 52

Slide 52

! glyphe

Slide 53

Slide 53

! glyphe

Slide 54

Slide 54

Hard times Amstelvar by David Berlow

Slide 55

Slide 55

Overchoice Many options make it harder and require much more knowledge ! glyphe

Slide 56

Slide 56

90 named instances for Acumin Variable in Photoshop ! glyphe

Slide 57

Slide 57

Static Fonts Variable Font Aa Aa Aa Aa 90 KB 110 KB Regular 30 KB Italic 30 KB Bold 30 KB Roman 110 KB ! glyphe

Slide 58

Slide 58

Static Fonts Variable Font Aa Aa Aa Aa Aa 90 KB 220 KB Regular 30 KB Italic 30 KB Bold 30 KB Roman 110 KB Italic 110 KB ! glyphe

Slide 59

Slide 59

Single font Aa € 30–60 Font family Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa € 300–700 ! glyphe

Slide 60

Slide 60

Single font Aa € 30–60 Variable font Aa Roman 110 KB € ? Font family Aa Aa Aa Aa Aa Aa Aa Aa Aa Aa € 300–700 ! glyphe

Slide 61

Slide 61

Get Started Cheee by OHNO

Slide 62

Slide 62

Open Source github.com/LettError/mutatorSans ! glyphe

Slide 63

Slide 63

Add on black-foundry.com/vesterbro ! glyphe

Slide 64

Slide 64

Retail cjtype.com/dunbar/variablefonts/info.html ! glyphe

Slide 65

Slide 65

Subscription Model? blog.typekit.com/variable-font-technology-from-adobe ! glyphe

Slide 66

Slide 66

Font Playground at Type Detail play.typedetail.com ! glyphe

Slide 67

Slide 67

Font Playground at Type Detail play.typedetail.com ! glyphe

Slide 68

Slide 68

Firefox Nightly DevTools ! glyphe

Slide 69

Slide 69

Summing up • One font file with many possible styles • Fine graded influence for better typography – when you know what you’re doing • Improvements by default with optical-sizing • Performance gain under certain conditions ! glyphe

Slide 70

Slide 70

Resources • • • • • • • For new releases v-fonts.com & twitter.com/variablefonts Testing variable fonts axis-praxis.org & play.typedetail.com List of available variable Fonts by Indra Kupferschmid: bit.ly/2MC8QV9 How to start with variable fonts on the web by me: bit.ly/2NgHQId Getting started with variable fonts by Richard Rutter: bit.ly/2BwVViT Use variable fonts in the real world by Richard Rutter: bit.ly/2FLvtRc TYPO Labs 2018 various talks: typotalks.com/labs ! glyphe

Slide 71

Slide 71

! glyphe

Slide 72

Slide 72

! glyphe

Slide 73

Slide 73

! glyphe

Slide 74

Slide 74

! glyphe

Slide 75

Slide 75

Slides on noti.st/glyphe Oliver Schöndorfer Gingham by Christoph Koeberlin ! glyphe 8660.at