DEV Community

Discussion on: Save page weight with web font subsetting

Collapse
 
ben profile image
Ben Halpern

How does this work with a CDN? You're telling the host what data to send over?

Collapse
 
benjaminblack profile image
Benjamin Black

Google Web Fonts, for example, lets you choose a subset of the font you intend to use so that the font includes only, e.g., the so-called "Latin-1" characters, and not all of the extended characters.

Collapse
 
stereobooster profile image
stereobooster

This data should be communicated through URL, like this:

@import url("http://fonts.googleapis.com/css?family=Lato:300,400,700&subset=latin");