@acirujano | #WCKyiv
Better UX and WPO
using variable fonts
in WordPressAna Cirujano | WordCamp Kyiv 2019 | 9th
November
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
OpenType Font
Variations
Microsoft + Google + Apple + Adobe =
@acirujano | #WCKyiv
zeichenschatz.net
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
Standard Fonts Variable Font
19
requests
4
requests
1.25 MB 229 KB
9.89 s 2.49 s
5 registered axes
Weight, Width, Optical Size,
Italic, Slant
Weight
wght
@acirujano | #WCKyiv
Source: Open Educational Resources for Typography
Regular Faux Bold Real Bold
@acirujano | #WCKyiv
@acirujano | #WCKyiv
Width
wdth
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
Optical size
opsz
@acirujano | #WCKyiv
Optical size variations. Source
@acirujano | #WCKyiv
Italic — Slant
ital — slnt
@acirujano | #WCKyiv
WordCamp Kyiv
WordCamp Kyiv
Baskerville MT Std
How to use
variable fonts
@acirujano | #WCKyiv
Can I use variable fonts?
@acirujano | #WCKyiv
@font-face {
font-family: “SourceSans”;
src:	url(source-sans-variable.woff2) format(“woff2-variations”), 	
				url(source-sans.woff2) format(“woff2”);
			 font-weight: 1 999;
				font-style: oblique –90 90;
				font-stretch: 50% 200%;
}
@acirujano | #WCKyiv
		.class {
				font-family: “SourceSans”, sans-serif;
				font-weight: 340;
				font-stretch: 80%;
				font-optical-sizing: auto;
		}
@acirujano | #WCKyiv
@import url(‘https://fonts.googleapis.com/css2?
family=Hepta+Slab:wght@1..900’);
@import url(‘https://fonts.googleapis.com/css2?
family=Crimson+Pro:ital,wght@0,200..900;1,200..900’);
Source
@acirujano | #WCKyiv
@acirujano | #WCKyiv
REGISTERED AXES CSS PROPERTY CSS VALUES
Italic (ital) font-style: italic italic or normal
Optical Size (opsz) font-optical-sizing auto or none
Slant (slnt) font-style: oblique + angle −90deg-90deg
Weight (wght) font-weight 1-999
Width (wdth) font-stretch
100% is normal, 50% is ultra-condensed
and 200% is ultra-expanded
Custom Axes
@acirujano | #WCKyiv
Custom Axes
@acirujano | #WCKyiv
Custom Axes
Source
@acirujano | #WCKyiv
Custom Axes
Source
@acirujano | #WCKyiv
Custom Axes
Source
@acirujano | #WCKyiv
Custom Axes
Source
@acirujano | #WCKyiv
Source
@acirujano | #WCKyiv
@acirujano | #WCKyiv
@acirujano | #WCKyiv
.class {
	font-family: Decovar;
	color: white;
	font-variation-settings: “INLN” 285.094, “TSHR” 346.594,
	“TRSB” 786.377, “SSTR” 84.268, “TWRM” 200, “SINL” 84.268,
	“TOIL” 0, “TINL” 91.983, “WORM” 0, “wght” 400, “TFLR” 0,
	“TRND” 0, “SWRM” 0, “TSLB” 277.155, “TBIF” 0;
}
Custom Axes: inline, sheared, rounded slab, stripes, worm terminal, inline skeleton, open inline
terminal, inline terminal, worm, weight, flared, rounded, worm skeleton, slab, bifurcated.
Examples
@acirujano | #WCKyiv
@acirujano | #WCKyiv
Fuente
@acirujano | #WCKyiv
@acirujano | #WCKyiv
Fuente
@acirujano | #WCKyiv
Resources
@acirujano | #WCKyiv
Axis Praxis
@acirujano | #WCKyiv
v-fonts
@acirujano | #WCKyiv
play.typedetail.com
@acirujano | #WCKyiv
variable-font-experiments.glitch.me
@acirujano | #WCKyiv
Wakamai Fondue
@acirujano | #WCKyiv
Jason Pamental
@acirujano | #WCKyiv
Mandy Michael
Benefits of Using
Variable Fonts
@acirujano | #WCKyiv
Benefits of Using Variable Fonts
Web Performance Optimization User Experience
дякую!
¡Gracias!

Better UX and WPO using variable fonts in WordPress