Easier way

Story: Automatically Install All The Google Web Fonts In Ubuntu Using A ScriptTotal Replies: 5
Author Content
jhansonxi

Jan 21, 2011
4:20 PM EDT
sudo su

mkdir --parents /usr/share/fonts/truetype/google-fonts

wget --quiet --recursive --no-directories --no-parent --accept "*.ttf" "https://googlefontdirectory.googlecode.com/hg/ " --directory-prefix=/usr/share/fonts/truetype/google-fonts

fc-cache -f > /dev/null
Sander_Marechal

Jan 22, 2011
4:17 AM EDT
Worked perfectly. Thanks!
Bob_Robertson

Jan 22, 2011
5:36 PM EDT
Interesting. I wonder what all the new fonts are for?

Sander_Marechal

Jan 23, 2011
5:35 AM EDT
Making the web look better and keeping it flash-free. CSS @font-face isn't working consistently across browsers so it requires quite a bit of javascript magic to fix it. Add to that the problem of font distribution and you've got quite a mess on your hand. So, web developers often used image replacement instead. Either regular image replacement (bad for search engines and pretty 1999) or flash based techniques.

Google's Font API solves all of this in one fell swoop.
Bob_Robertson

Jan 23, 2011
10:43 AM EDT
Oh well, you're talking to a guy who edits his html in vi.
gus3

Jan 23, 2011
1:28 PM EDT
So how many bits of browsing data can Google gather from a site using this API? Let's see, there's the site that's calling it, and the browser that's using it, plus any cookies that might get sent with the request for the JavaScript...

I'll pass. "Google" != "trustworthy"

Besides, people who read my stuff generally use readable fonts in their browsers already, and I'm not going to override their font choices if I can help it.

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!