just do it.
Posted in my life on December 3rd, 2009 by fred – Comments Off
Last week a friend of mine Jason Scott showed me Typekit. Typekit is a site where you pay for access to their fonts for web usage. This might seem odd or just a natural progression of the pay-to-play direction the web seems to be taking. Let me say I have no problem with that, but having the curious nature that I do, I wanted to look under the covers at typekit and how they protect their fonts. So….
If you click on “Browse Fonts” you end up here, at their font library listing.
Say you really liked the font Coquette. So you pull up the source of the page and find http://typekit.com/fonts.css?font_ids=104&char_set=latin1&variations=all. Which is a css file which contains entries like this:
@font-face {
font-family: "coquette-1";
src: url(data:font/otf;base64,AAEAAAAQAQ..[cut]..AuOL1TA==);
font-style: normal;
font-variant: normal;
font-weight: 400;
}
That src: url(data:font/otf;base64… line is the font. base 64 encoded. “IF” you were to copy that long string of text start at the “AAE…” until the “”TA==” and put it into a website that Decoded Base64 it would spit out a file with an extension of “.bin” If you were to rename it to “.ttf”, you would have a font. Which you could then use with code like this:
@font-face {
font-family: 'Coquette Regular';
src: url('Coquette.eot');
src: local('Coquette Regular'), local('Coquette-Regular'),
url('Coquette.ttf') format('truetype');
}
Now. I realize that typekit is trying to make a business on hosting fonts, but they aren’t really doing anything to protect it.
God this is hard, you’ve had no sleep,
You’ve thought of nothing else for weeks
You begin your lines, you fumble with your purse
It’s been eating you,
You don’t know what to do
And your lie, only made it worse
(Pre-chorus)
You can’t expect him to understand
He’s not a saint, he’s just a man
And you know,
That you can’t change what you did
(Chorus)
But if you have forty lives
You get it right by the thirty-ninth
As it is,
All that you could ask
All this will pass
(End of Chorus)
God, you wish like hell
You hadn’t done it and you tell
Him, how much you regret it
But you’re talking to yourself
You’re as lonely and as desperate as a
Kettle boiling, with no there to get it
(Pre-chorus)
All the words, you meant to say
Had in the air and flown away
And vanished,
Into the end of the dying day
(Chorus)
But if you have forty lives,
You get it right by the thirty-ninth
And as it is,
All that that you could ask
All this will pass
(Bridge/solo)
Oh aaahh aah aah aah aah ah
Oh aaahh aah aah aah aah ah
Oh aaahh aah aah aah aah ah
Oh aaahh aah aah aah aah ah
Oh aaahh aah aah aah aah aah
(Pre-chorus)
And if only I had’ve stayed,
And if only had been there rain
And it’s funny,
What a difference then that it makes
(Chorus)
But if you have forty lives,
You get it right by the thirty-ninth
And as it is,
All that that you could ask
All this will pass
Inhabitat » Casette Tape Lamps.
Looks easy enough to build….