@font-face integration would be really handy in Sweaver, no doubt someone will write it. I was just thinking it might be worth looking at the @font-your-face module as it allows you to browse available fonts from multiple online sources.

Comments

sreynen’s picture

I'm the maintainer of @font-your-face, and would be happy to help with this. I see there's a mention of @font-your-face support on the project page now, but I don't see anything in the actual code yet. It should be pretty simple to call fontyourface_get_fonts() and get a list of fonts that have been activated.

swentel’s picture

The plugin should be in dev - only added it yesterday. The plugin itself alters the font family property options (clear cache if you don't see them right away)

@Jyve, see if you can use that API function instead of the direct query it's doing now

jyve’s picture

The plugin has been updated to use the API function instead of the custom query and it has been committed to the dev version.

Really excited about this integration!

sreynen’s picture

Ah, the dev release, that makes sense. I'm pretty excited about this too. This kind of API use is exactly what I've been hoping would happen with @font-your-face. I'm in the middle of getting Typekit added, so it'll be awesome to have that just automatically work in Sweaver when it's done.

SeanBannister’s picture

That works great, nice work!!! Thanks all.

jyve’s picture

Status: Active » Closed (fixed)