Es ist Zeit für Variable Fonts

A presentation at WordCamp Vienna 2019 in April 2019 in Vienna, Austria by Oliver Schöndorfer

Slide 1

Slide 1

Conquer Variable Web Typography Venn by Dalton Maag

Slide 2

Slide 2

Oliver Schöndorfer Designer ! glyphe ” zeichenschatz

Slide 3

Slide 3

! glyphe

Slide 4

Slide 4

Slide 5

Slide 5

Slide 6

Slide 6

Slide 7

Slide 7

Slide 8

Slide 8

Slide 9

Slide 9

Slide 10

Slide 10

! glyphe

Slide 11

Slide 11

! glyphe

Slide 12

Slide 12

! glyphe

Slide 13

Slide 13

! glyphe

Slide 14

Slide 14

! glyphe

Slide 15

Slide 15

! glyphe

Slide 16

Slide 16

18 font files 632 KB for web fonts only ! glyphe

Slide 17

Slide 17

1 font file 56 KB overall size ! glyphe

Slide 18

Slide 18

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 19

Slide 19

What are variable fonts? Voto Serif by Google

Slide 20

Slide 20

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

Slide 21

Slide 21

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

Slide 22

Slide 22

Aa Aa Aa Aa Aa Variable font file ! glyphe

Slide 23

Slide 23

A ! glyphe

Slide 24

Slide 24

A ! glyphe

Slide 25

Slide 25

Aa Aa Aa Aa Aa Interpolation ! glyphe

Slide 26

Slide 26

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

Slide 27

Slide 27

Aa Aa Aa Aa Aa weight axis ! glyphe

Slide 28

Slide 28

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

Slide 29

Slide 29

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 30

Slide 30

Using variable fonts on the web Output Sans by DJR

Slide 31

Slide 31

84 % Global support 95 % Mobile support in Austria ” # $ % Safari 11 Chrome 62 Edge 17 Firefox 62 ” # iOS Safari 11 caniuse.com/#feat=variable-fonts Chrome 67 for Android ! glyphe

Slide 32

Slide 32

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

Slide 33

Slide 33

@font-face { Will become the standard font-family: ‘Venn’; src: url(‘Venn.woff2’) format(‘woff2-variations’), url(‘Venn.woff2’) format(‘woff2’); } Fallback for older browser versions ! glyphe

Slide 34

Slide 34

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

Slide 35

Slide 35

5 wght wdth ital slnt opsz registered axes ! glyphe

Slide 36

Slide 36

Source Serif Variable by Adobe ! glyphe

Slide 37

Slide 37

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

Slide 38

Slide 38

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 39

Slide 39

Venn by Dalton Maag ! glyphe

Slide 40

Slide 40

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

Slide 41

Slide 41

Intermission Hela by Jan Charvát

Slide 42

Slide 42

! glyphe

Slide 43

Slide 43

transform: scaleX(1.25); ! glyphe

Slide 44

Slide 44

transform: scaleX(1.25); ! glyphe

Slide 45

Slide 45

font-stretch: 125%; ! glyphe

Slide 46

Slide 46

font-stretch: 125%; ! glyphe

Slide 47

Slide 47

transform: scaleX(1.25); font-stretch: 125%; ! glyphe

Slide 48

Slide 48

FF Meta Variable by Monotype ! glyphe

Slide 49

Slide 49

font-style: italic; font-variation-settings: “ital” 1; FF Meta Variable by Monotype ! glyphe

Slide 50

Slide 50

Output Sans by David Jonathan Ross ! glyphe

Slide 51

Slide 51

font-style: oblique 8deg; font-variation-settings: “slnt” 8; Output Sans by David Jonathan Ross ! glyphe

Slide 52

Slide 52

Optical Sizing Axis Voto Serif by Google ! glyphe

Slide 53

Slide 53

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

Slide 54

Slide 54

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

Slide 55

Slide 55

Decovar by FontBureau ! glyphe

Slide 56

Slide 56

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

Slide 57

Slide 57

Golden times Lab DJR by DJR

Slide 58

Slide 58

sz-magazin.sueddeutsche.de ! glyphe

Slide 59

Slide 59

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 60

Slide 60

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 61

Slide 61

dstype.com/variable-fonts ! glyphe

Slide 62

Slide 62

dstype.com/variable-fonts ! glyphe

Slide 63

Slide 63

! glyphe

Slide 64

Slide 64

! glyphe

Slide 65

Slide 65

! glyphe

Slide 66

Slide 66

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

Slide 67

Slide 67

Output Sans Hairline by DJR ! glyphe

Slide 68

Slide 68

Safari

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

Slide 69

Slide 69

Output Sans Hairline by DJR ! glyphe

Slide 70

Slide 70

! glyphe

Slide 71

Slide 71

! glyphe

Slide 72

Slide 72

Hard times Amstelvar by David Berlow

Slide 73

Slide 73

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

Slide 74

Slide 74

90 named instances for Acumin Variable in Photoshop ! glyphe

Slide 75

Slide 75

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 76

Slide 76

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 77

Slide 77

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

Slide 78

Slide 78

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

Slide 79

Slide 79

Open Source github.com/LettError/mutatorSans ! glyphe

Slide 80

Slide 80

Hosting and Renting fontstand.com ! glyphe

Slide 81

Slide 81

Retail Add on black-foundry.com/vesterbro ! glyphe

Slide 82

Slide 82

Get Started Cheee by OHNO

Slide 83

Slide 83

Aa Aa Aa Variable Web Font Static Web Fonts Default System Fonts First Choice 1st Fallback Fallback Venn Variable Venn Regular Venn Bold Aa Aa Helvetica Regular Helvetica Bold ! glyphe

Slide 84

Slide 84

Variable fonts with fallback web fonts cdpn.io/XxZzYV ! glyphe

Slide 85

Slide 85

Variable fonts with fallback web fonts cdpn.io/XxZzYV ! glyphe

Slide 86

Slide 86

Not supporting browsers will ignore this h1 { font-size: 2.5rem; font-variation-settings: “wdth” 75; } ! glyphe

Slide 87

Slide 87

h1 { font-size: 2.5rem; font-variation-settings: “wdth” 75; } @supports (font-variation-settings: normal) { h1 { font-size: 4rem; Only when variable fonts work } } ! glyphe

Slide 88

Slide 88

Firefox DevTools ! glyphe

Slide 89

Slide 89

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 • Use web fonts as first fallback option ! glyphe

Slide 90

Slide 90

Resources • • • • • • • • How to start with variable fonts on the web by me: bit.ly/2NgHQId Use a variable font with fallback web fonts by me: bit.ly/2Dk22qY 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 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 91

Slide 91

! glyphe

Slide 92

Slide 92

! glyphe

Slide 93

Slide 93

! glyphe

Slide 94

Slide 94

! glyphe

Slide 95

Slide 95

Oliver Schöndorfer ! glyphe Gingham by Christoph Koeberlin zeichenschatz.net ” zeichenschatz

glyphe