Free fonts, list here:

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.

#2 fontyourface-Edge_Fonts_PoC_2-1794540-2.patch6.73 KBDrave Robber
PASSED: [[SimpleTest]]: [MySQL] 9 pass(es). View
#1 fontyourface-Edge_Fonts_PoC-1794540-1.patch5.31 KBDrave Robber
PASSED: [[SimpleTest]]: [MySQL] 9 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


Drave Robber’s picture

5.31 KB
PASSED: [[SimpleTest]]: [MySQL] 9 pass(es). View

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
6.73 KB
PASSED: [[SimpleTest]]: [MySQL] 9 pass(es). View

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.