Google Fonts supports loading specific characters of a font:
http://fonts.googleapis.com/css?family=Inconsolata&text=Hello
Google Fonts also supports loading multiple families and styles with one request:
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic|Inconsolata:italic|Droid+Sans
Is there a way to load different character sets for different families without making multiple requests? It seems that since text
is a separate query parameter the answer is "no, the text
param applies to all requested families and styles`, but figured I'd throw it out there...
UPDATE: @Gothburz' answer shows it's possible to load specific subset
s of multiple fonts with one request, but I haven't found a way to load specific text
ranges with one request.
You can add character subsets in the URL using extra parameter &subset
with comma separated value, like this:
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700|Ubuntu:400,700,400italic,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
Example of multipls subsets & fonts:
<link href='http://fonts.googleapis.com/css?family=Open+Sans:700,300&subset=latin,cyrillic|PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With