http://fontdeck.com/

Looks pretty similar to Typekit in access control, except you just get the font-family to use on the site, not in JS. So that would need to be pulled out of the served CSS. Or maybe they'll add an API.

Comments

sreynen’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Postponed

Not planning on adding any new providers until after 2.0.

rrutter’s picture

Fontdeck will be providing an API by the end of 2010. Details will be available on http://fontdeck.com/support/

sreynen’s picture

Awesome, thanks.

sreynen’s picture

Status: Postponed » Active

@rrutter sent me the new API details. It looks like this should be pretty simple to implement. No preview, so it will work much like Typekit, where you enter your key on the settings page and only see the fonts within your Fontdeck account.

sreynen’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Fontdeck is committed to dev.

sreynen’s picture

Status: Fixed » Patch (to be ported)

Just realized this still needs to be ported back to D6.

sreynen’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev
thomasmuirhead’s picture

Hi there,

It'd be great to see fontdeck added to the drupal 6 version. Is this easy to do? Where would I start?

Thanks

Thomas

sreynen’s picture

If you're familiar with writing Drupal 6 modules, it should be pretty easy to port. All of the logic is already written, so someone just needs to change the specific code where it's D7-specific. Most of the code should work fine in D6, so there won't be much to change. The relative ease of this is one reason I haven't done it myself; I'm hoping others might use it as a starting point to get involved in development.

My general approach would be to copy the D7 version, change the version in the .info file, enable it in D6, and then fix whatever breaks.

feng-shui’s picture

Component: Code » Code (general)
StatusFileSize
new4.04 KB

Attached is my initial pass at a D6 FontDeck module, may need some more work as I continue to use it, but should get people started. Attached as a zipped module rather than a patch - apologies Git is giving me some issues this morning would be great it someone could roll a patch from it.

sreynen’s picture

Status: Patch (to be ported) » Needs review

Thanks for the port! I'll try to review this soon.

mdeltito’s picture

Status: Needs review » Patch (to be ported)
StatusFileSize
new1.33 KB

Just a note:

The fontdeck backport posted by Feng-Shui in #10 works fine for me. There were only 2 changes that were made (compared to the fontdeck module in current dev)

One issue I had was with line 29:

$project_info_url = FONTDECK_BASE_URL . '/project-info?project=' . $project . '&domain=' . $domain;

The leading '/' before 'project-info' causes the request to fail, at least for me. Removing that slash fixes the $project_info_url having double slashes, and now everything works as expected.

Attached is a patch against dev

sreynen’s picture

Status: Patch (to be ported) » Fixed

This is committed. Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.