Google font issue

36 views
Skip to first unread message

Socrate

unread,
Sep 20, 2015, 3:19:52 PM9/20/15
to Google Web Designer beta
GWD keep on dropping the "subset" attribute from google font!!!

if i add this to the code, save, close the banner, then open it again, THEN the subset attribute just disappears!!

<link href="https://fonts.googleapis.com/css?subset=arabic,latin&amp;family=Scheherazade:400,700|Lato:400,300,700" rel="stylesheet" type="text/css">

changes to ===>

<link href="https://fonts.googleapis.com/css?family=Scheherazade:400,700|Lato:400,300,700" rel="stylesheet" type="text/css">

looks like a bug need to be fixed !

Jaz

unread,
Sep 21, 2015, 6:03:28 PM9/21/15
to Google Web Designer beta
Hi,

I found some information regarding the fonts API that might be helpful to you. The subset parameter should be at the end of the URL. Can you take a quick look, adjust the code and let us know if this helps?

https://developers.google.com/fonts/docs/getting_started#Subsets

Scheherazade example, per the Google Fonts site: <link href='https://fonts.googleapis.com/css?family=Scheherazade:400,700&subset=arabic' rel='stylesheet' type='text/css'>

Specifying script subsets

Some of the fonts in the Google Font Directory support multiple scripts (like Latin, Cyrillic, and Greek for example). In order to specify which subsets should be downloaded the subset parameter should be appended to the URL.

. . . Please note that if a client browser supports unicode-range (http://caniuse.com/#feat=font-unicode-range) the subset parameter is ignored; the browser will select from the subsets supported by the font to get what it needs to render the text.

thx
jaz
Program Manager, GWD
Reply all
Reply to author
Forward
0 new messages