It would be helpful if the API supported a way to specify multiple different
subsets and texts for more than one font in a single request.
For example, to request multiple font families, you specify the names with a
pipe delimiter:
http://fonts.googleapis.com/css?family=Tangerine|Inconsolata|Droid+Sans
If you then wish to specify multiple styles and weights for those fonts, you
use a colon and commas as delimiters:
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic|Inconsolata:ita
lic|Droid+Sans
So how does one go about specifying subsets and texts in this manner? The
following requests obviously don't work since they are introducing new
parameters:
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic&text=abcdef|Inc
onsolata:italic|Droid+Sans&text=ghijlk
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic&subset=latin|In
consolata:italic|Droid+Sans&subset=cyrillic
It would be helpful for something like the following work:
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic:text=abcdef|Inc
onsolata:italic:text=ghijk
Or something like this:
http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic#abcdef|Inconsol
ata:italic#ghijk
Currently, developers have to make multiple requests to achieve the same
functionality. Enhancing the API to allow for more options would make for
dramatically smaller file sizes and download times!
Additional reference: https://github.com/typekit/webfontloader/issues/183
Original issue reported on code.google.com by snstol...@gmail.com on 2 Feb 2015 at 8:35
Original issue reported on code.google.com by
snstol...@gmail.com
on 2 Feb 2015 at 8:35