Free fonts, list here:

http://www.edgefonts.com/

An API would be nice, but we could start with just a static list directly in the module, like we did with Google before they had an API.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Drave Robber’s picture

Proof of concept attached.

The list contains just three fonts with four variants, and preview is not implemented yet, but other than that it even works.

(edit: works to an extent - Abril Fatface does not work because I confused 'font name' and 'family name')

Drave Robber’s picture

Status: Active » Needs review
FileSize
6.73 KB

Second attempt:
- fixed css_family issue,
- implemented preview,
- reworked font naming more in line with that used by the provider (we omit 'Regular' though),
- moved helper function providing human-readable descriptions of weights to the .inc file,
- added some more fonts (manually for now, but I'm thinking about writing a scraper for this).

To do:
- implement handling of subsets (as there are two choices - 'default' and 'all' - at the moment, this could be a global configuration).
- implement some logging and such.

Work in progress, but it still could use some review.

Drave Robber’s picture

Upon scraping the whole list (860 fonts in 501 families), the thing got quite huge (.inc file is 70+k), so I created a temporary sandbox for it.

sreynen’s picture

Status: Needs review » Fixed

Sandbox looks good to me. I committed it.

Status: Fixed » Closed (fixed)

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