I copied some code from Media module to import multiple fonts at once.

With this, I can put all local fonts in sites/all/fonts, and then using Batch Import to import them.

Take a while to figure out how to convert from absolute path to URI...

Please give me feedback, bug reports...

Kinds and Regards

CommentFileSizeAuthor
batch-patch.diff9.64 KBdinhtrung
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sreynen’s picture

Status: Active » Needs work

This is a good idea, but I think it should be a separate module. The current local font import form does uploads via HTTP in the browser, which is much simpler than uploading via FTP and then referencing the directory. The current import also has more options than this batch import for styles and weights. Rather than remove that functionality or try to get batch imports to work more like single imports, I think we should have two distinct modules.

dinhtrung, it looks like you haven't created any modules yet. I'd be happy to help you with this if you want.

Chris Charlton’s picture

I just posted an idea at http://drupal.org/node/1825494 and subscribed to this issue, so I'll be keen to see where this can go.

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)