News for hackers. Stuff that matters.
Re:Google Fonts: more than a trillion served by eps on Friday November 29, 2013 @04:45PM (#6821144)
Trillion visits logged.

Just remember, kids, that it's the only reason Google Fonts exist.

Re:Google Fonts: more than a trillion served by jonknee on Friday November 29, 2013 @05:09PM (#6821212)
Except the part where they allow you to download them and serve yourself (they're open source):

https://developers.google.com/fonts/faq#Download_Fonts

> You can download the fonts to use them for your mockups, in your documents or to host them on your own server.

Google Fonts exists because it's in Google's best interest if everything is online. Having freely available high-quality fonts is a [small] way to help move that along.

Update: No cookies are set by Google either, they're just doing analytics by the user agent sent. The actual font files have 1 year expires headers on them as well, so cookies would be of limited use.

Re:Google Fonts: more than a trillion served by mehrdada on Friday November 29, 2013 @07:45PM (#6821701)
Also, without accessible web fonts, developers will have to use images containing rendered texts to get text pretty on their web pages, which is not so easy to index for a search engine.
Re:Google Fonts: more than a trillion served by eps on Saturday November 30, 2013 @01:37AM (#6822502)
> Except the part where they allow you to download them and serve yourself.

Yeah, you try that. It's a single format that you need to convert yourself to produce woffs, eots and other variations needed for the actual self-hosted deployment, and no matter how you convert, they will never come out looking the same as Google's native versions. This "go ahead, host it yourself" is disingenious and manipulative at best.

Re:Google Fonts: more than a trillion served by jonknee on Saturday November 30, 2013 @08:41AM (#6823127)
... All the fonts are open source, you can quite literally use Google's native versions. It's not exactly rocket science. You want Droid Sans?

http://themes.googleusercontent.com/static/fonts/droidsans/v...

http://themes.googleusercontent.com/static/fonts/droidsans/v...

http://themes.googleusercontent.com/static/fonts/droidsans/v...

Re:Google Fonts: more than a trillion served by eps on Saturday November 30, 2013 @10:20AM (#6823343)
... And you got these links from? What is the license for these .eot and .woff? Who says you can self-host them?

Rocket science or not, the bottom line is that these are not available from Google Fonts. You are expected to either use hosted version or muddle through the conversion process.

Re:Google Fonts: more than a trillion served by ward on Saturday November 30, 2013 @10:26AM (#6823355)
Re:Google Fonts: more than a trillion served by notJim on Saturday November 30, 2013 @02:06AM (#6822537)
Here you go: http://www.fontsquirrel.com/tools/webfont-generator. Upload a font and get back a kit with everything you need.
Re:Google Fonts: more than a trillion served by eps on Saturday November 30, 2013 @02:22AM (#6822556)
Yeah, try it with Droid Sans, compare the results, report back.

@font-face generators are dime a dozen. The issue is that they generate kits of subpar quality for Google fonts.

Re:Google Fonts: more than a trillion served by dkuntz2 on Saturday November 30, 2013 @04:09AM (#6822697)
Most of the time Font Squirrel has them made already, and you don't need to convert the already stripped down fonts from Google's severs...
Re:Google Fonts: more than a trillion served by eps on Saturday November 30, 2013 @10:14AM (#6823320)
Font Squirrel conversion botches up a lot of fonts, Droid Sans being the prime example.
Re:Google Fonts: more than a trillion served by dkuntz2 on Saturday November 30, 2013 @05:08PM (#6824855)
Even if you download it elsewhere first (where elsewhere equals not Google)?
Re:Google Fonts: more than a trillion served by gress on Friday November 29, 2013 @10:01PM (#6822075)
Except for the fact that people don't download and serve them themselves.
Re:Google Fonts: more than a trillion served by loceng on Friday November 29, 2013 @07:43PM (#6821694)
Didn't realize this - thanks. :)
Re:Google Fonts: more than a trillion served by afsina on Friday November 29, 2013 @05:08PM (#6821210)
So you are claiming that reason of very existence of Google Fonts is to collect not-so-useful-and-easily-could-be-collected-by-other-services-of-Google data? Can we stop the whole Google bashing it is getting ridiculous.
Re:Google Fonts: more than a trillion served by RexRollman on Friday November 29, 2013 @05:18PM (#6821254)
They are an advertising company, which pretty much makes them data collection company. Its completely fair to question their motivations.
Re:Google Fonts: more than a trillion served by jfb on Friday November 29, 2013 @05:31PM (#6821293)
I personally think that Google does things like this because they can; they are not under money pressure (yet?) to have to really try to extract maximum value from every bit served or watt consumed, and can thus spend energy on initiatives like this that improve the web as a platform -- it's at best an indirect benefit, but fits their overall corporate strategy. And, it's cool.

I have my doubts about Google, but I don't have a problem giving them the benefit of the doubt here.

Re:Google Fonts: more than a trillion served by garthdog on Friday November 29, 2013 @06:08PM (#6821433)
Make the web better for all forms of content so that people don't resort to proprietary tech?
Re:Google Fonts: more than a trillion served by DannyBee on Saturday November 30, 2013 @01:14AM (#6822466)
The motivations, as far as i know, are written on the about page:

"A web with web fonts is more beautiful, readable, accessible and open. " Google Fonts makes it quick and easy for everyone to use web fonts, including professional designers and developers. We believe that everyone should be able to bring quality typography to their web pages and applications."

If you have some actual evidence that the last part isn't true, and that it's really some big scheme to "log visits", what is it, exactly?

FWIW - my dealings with the team, which mostly involve reviewing occasional open source font contracts, makes me believe they really are just crazy about making web typography good. But i'm really interested in whatever sinister theories people have.

I mean, you know what they say about people who like "Signika Negative".

Re:Google Fonts: more than a trillion served by eps on Saturday November 30, 2013 @02:28AM (#6822563)
Your naivety is adoring.
Re:Google Fonts: more than a trillion served by DannyBee on Saturday November 30, 2013 @04:24AM (#6822713)
If you want to skip the personal attacks and explain

1. What "trillions of visits logged" means, exactly. IE what you think is being logged past a request for a font.

2. What you think the data is actually used for

The web font loader is open source, so this should not be too hard to explain what it's sending that you think is valuable and why.

Or you know, you could just continue on with meaningless ad-hominen attacks, since well, you never responded to anything i asked.

Re:Google Fonts: more than a trillion served by tptacek on Saturday November 30, 2013 @10:47AM (#6823407)
You know you're arguing with Dale Gribble, right?
Re:Google Fonts: more than a trillion served by DannyBee on Saturday November 30, 2013 @12:41PM (#6823793)
Yeah, well, i try to treat everyone the same, even if they seem, uh, off :)
Re:Google Fonts: more than a trillion served by mda on Saturday November 30, 2013 @02:36AM (#6822574)
Your hat is shiny.
Re:Google Fonts: more than a trillion served by ChrisArchitect on Friday November 29, 2013 @11:45PM (#6822327)
sure, advertising. but the goal here is to make the web more user friendly and useful for people, through better looking design/readability etc. That helps us all, and if then in turn they can keep the ad platforms alive, good on them I say.
Re:Google Fonts: more than a trillion served by darkhorn on Friday November 29, 2013 @05:14PM (#6821226)
Google Fonts, Google Public DNS, Google Analytics, Google+ like gadgets, Google Adsense, Google CDN for jQuery etc, Google services like Search and Gmail, Embedded Youtube videos, Google Chrome word correction sugesstions and safe sites checks, Firefox safe page checks, probably many things within Android backend.

Probably they know with 99.9999999% accuracy how many online web users are out there.

Re:Google Fonts: more than a trillion served by untog on Friday November 29, 2013 @04:56PM (#6821177)
Yep, like everything, it's a trade off. In return you get a very robust platform and free fonts.
Re:Google Fonts: more than a trillion served by pandringa on Friday November 29, 2013 @05:18PM (#6821253)
In return for what? Google's not profiting off of Google Fonts, because I'm sure that whatever data they get from it could be collected by their other services.
Re:Google Fonts: more than a trillion served by ars_technician on Friday November 29, 2013 @07:17PM (#6821632)
Logged visits to sites they would otherwise not get. Font request+referrer is useful information.
Re:Google Fonts: more than a trillion served by Silhouette on Saturday November 30, 2013 @03:33AM (#6822653)
If you're concerned about your own privacy in this respect, you can install a plug-in for most browsers that will prevent a real Referer being sent with your requests. Google will still serve you the web font, they just won't know which page you were viewing at the time.

(I'm not making any comment on Google's general strategy or how many people would actually understand that they might wish to protect their privacy in this way, just pointing out that it can be done.)

Re:Google Fonts: more than a trillion served by gress on Friday November 29, 2013 @10:02PM (#6822082)
A trade off implies people understand what Google is doing, which they don't because it's secret.
Re:Google Fonts: more than a trillion served by J_Darnley on Friday November 29, 2013 @06:07PM (#6821426)
My computer or more accurately the operating system came with dozens of fonts, maybe hundreds. Why can't you use one of those?
Re:Google Fonts: more than a trillion served by xnxn on Friday November 29, 2013 @06:36PM (#6821520)
Imagine how ridiculous the web would look today if content creators had to restrict the images they used to some common subset of those preinstalled on clients' operating systems.

Would you condemn web typography to the use of "web safe fonts" forever?

Re:Google Fonts: more than a trillion served by J_Darnley on Friday November 29, 2013 @07:02PM (#6821585)
Yes. I do indeed condemn creators to use a font which renders correctly and I also condemn them to use a size which is legible.
Re:Google Fonts: more than a trillion served by jonknee on Friday November 29, 2013 @06:31PM (#6821501)
Because most of them suck?
Re:Google Fonts: more than a trillion served by SquareWheel on Friday November 29, 2013 @10:12PM (#6822108)
And more than that, each operating system has a different set of fonts.
Re:Google Fonts: more than a trillion served by PavlovsCat on Saturday November 30, 2013 @01:21AM (#6822476)
Isn't it the job of the user agent to have options to override the choices of a website? Otherwise, the subset of "fonts everybody is sure to have" is just too small.

Why not let everybody have websites look how they want them to look? I'm kinda sad this vision gets so little attention, that instead we all try to push our vision on our visitors. Even if the web turns app platform.. just like we have configurable desktop managers, browser could still let everybody customize how websites look - if only websites could stop with the "story telling" and "experiences", and concentrated on utility and information. We're too addicted too shiny for our own good already.

Re:Google Fonts: more than a trillion served by unknownian on Friday November 29, 2013 @05:00PM (#6821185)
Is it against the TOS to download the font and host it on your own server? It's very simple to do even though they don't give instructions.
Re:Google Fonts: more than a trillion served by putlake on Friday November 29, 2013 @05:15PM (#6821234)
I am in the middle of a redesign and the new design uses Droid Serif. I wanted to avoid an extra HTTP request and bundle the WOFF font file in the CSS (using data URIs). The other option was to host the font on my server to avoid the DNS lookup for yet another domain. (CSS is in the critical path for page loads).

Both are easy to do but I abandoned both of those ideas after watching this interview http://www.youtube.com/watch?v=sqesm0euf9M

Google Fonts makes a lot of optimizations that are platform-specific. e.g. serve smaller files to Macs, larger files to Windows. It is not worth doing all this yourself.

Re:Google Fonts: more than a trillion served by bennyg on Friday November 29, 2013 @09:18PM (#6822002)
My least favorite thing about Google Fonts is that they look different on different browsers for each platform too. On my latest site design I had to put them on my server because they actually looked the worst in Chrome.
Re:Google Fonts: more than a trillion served by markdown on Friday November 29, 2013 @05:54PM (#6821385)
Don't put anything more than 10KB into a CSS file as a data URI.
Re:Google Fonts: more than a trillion served by Silhouette on Saturday November 30, 2013 @03:42AM (#6822660)
Where does this limit come from?

IE8 can handle up to 32KB[1], and more recent versions of all major browsers appear to have much higher limits. IE7 and below didn't support data: anyway.

[1] See http://caniuse.com/datauri, and confirmed by Microsoft's own technical documentation.

Re:Google Fonts: more than a trillion served by markdown on Saturday November 30, 2013 @05:18PM (#6824915)
Oh I didn't mean that to be a browser limitation, but that it is generally a good idea performance wise.
Re:Google Fonts: more than a trillion served by Silhouette on Saturday November 30, 2013 @09:20PM (#6825754)
Why would that be the case?

In terms of file size, a naive implementation of replacing reference to image files with data: URIs carries a theoretical overhead of 1/3. However in practice, as long as you're serving the relevant CSS file gzipped, you're likely to see less than 5% overhead on a single file. If you've got several similar image files converted to data: URIs within the same CSS file, you might even see a significant gain because the compression can remove more redundancy.

In terms of HTTP requests, generally fewer is better, so it's hard to go wrong here by using data: URIs instead of separate but relatively small image files.

The only major factor I can immediately think of that is clearly in favour of separate image files, unless you're really at the level where the decoding performance for data: URIs makes a significant difference, is that the image files can be cached independently, which may or may not be a win depending on how you manage your CSS and how often the various parts of it change relative to each other.

Re:Google Fonts: more than a trillion served by markdown on Sunday December 01, 2013 @11:02PM (#6831483)
Don't forget that browsers will wait for the CSS file to download before rendering the page.

Far better to let "unnecessary" image files load later via separate HTTP requests than to delay everything just so that you can save one or two HTTP round-trips.

This is a big issue on mobile.

I'd advise comparing both methods on https://developers.google.com/speed/pagespeed/insights/

Re:Google Fonts: more than a trillion served by Silhouette on Monday December 02, 2013 @07:14PM (#6837601)
YMMV, but we did plenty of testing for one site I currently work on with a heavy mobile access focus, and it wasn't even close. We could have added hundreds of extra KB in a CSS file and still beaten even a single additional image file that needed a whole extra HTTP round trip for a visitor with a typical intermittent mobile connection (poor reception, on the move, etc.). The multiple levels of set-up required in that context can easily dominate the overall time to seeing a useful page.

Of course it's less of a dramatic comparison if you don't have all that set-up overhead to worry about, but then the time to download an extra 200K of CSS is negligible on basically any broadband or stable 3G or better connection today, so we don't tend to worry much about that sort of situation. In practice, our decision on how to transmit medium-sized images is often based on cache-related factors.

Re:Google Fonts: more than a trillion served by jonknee on Friday November 29, 2013 @05:05PM (#6821199)
Re:Google Fonts: more than a trillion served by nkuttler on Friday November 29, 2013 @07:24PM (#6821647)
Considering that browsers have caches this isn't a huuuge issue.
Re:Google Fonts: more than a trillion served by byjove on Friday November 29, 2013 @05:13PM (#6821224)
Only reason huh? nothing to do with prettifying the web and making developers happy, because that doesn't benefit Google in any way...
Re:Google Fonts: more than a trillion served by RexRollman on Friday November 29, 2013 @05:15PM (#6821232)
Not directly it doesn't.
Re:Google Fonts: more than a trillion served by coldtea on Friday November 29, 2013 @05:42PM (#6821342)
If they cared about that they'd keep Reader open.
Re:Google Fonts: more than a trillion served by mburns on Friday November 29, 2013 @06:07PM (#6821430)
That's a a ridiculous stretch.
Re:Google Fonts: more than a trillion served by byjove on Friday November 29, 2013 @06:10PM (#6821440)
I don't see the connection there. Anyway it would appear that the universe has survived that ordeal.