Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API URL subset and text parameters do not support multiple values #392

Open
GoogleCodeExporter opened this issue Apr 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 2 Feb 2015 at 8:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant