Skip to content

Instantly share code, notes, and snippets.

View slickwit's full-sized avatar
🎧
Wired In

Kenneth Ryan Dy slickwit

🎧
Wired In
View GitHub Profile

Examining how Google Fonts returns different Roboto font files for various User-Agent strings. (h/t https://stackoverflow.com/a/27308229/93579)

The src URLs referenced below are what get served to the browsers when they access this font:

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

This is referenced as part of a Tweet. For responding, please reply on Twitter as Gist comments send no notifications.

@sadikay
sadikay / google_fonts.css
Created April 26, 2017 22:34
All Google Fonts In One CSS File
@font-face {
font-family: 'ABeeZee';
font-style: normal;
font-weight: 400;
src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype');
}
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;
@karimnaaji
karimnaaji / GoogleFonts.txt
Created January 9, 2017 17:33
Google fonts list (TTF)
{
"kind": "webfonts#webfontList",
"items": [
{
"kind": "webfonts#webfont",
"family": "ABeeZee",
"category": "sans-serif",
"variants": [
"regular",
"italic"