Closed (fixed)
Project:
@font-your-face
Version:
7.x-2.x-dev
Component:
Code (general)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2012 at 14:05 UTC
Updated:
25 Nov 2012 at 01:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
Drave Robber commentedProof 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')
Comment #2
Drave Robber commentedSecond 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.
Comment #3
Drave Robber commentedUpon 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.
Comment #4
sreynen commentedSandbox looks good to me. I committed it.