Download & Extend

Make fonts exportable and importable

Project:@font-your-face
Version:6.x-2.x-dev
Component:Code (general)
Category:feature request
Priority:normal
Assigned:BarisW
Status:patch (to be ported)

Issue Summary

Would be nice to be able to include fonts in features and this should also be useful for creating a unified set of font tags.

Comments

#1

I agree, would be great if we could export font settings! *subscribing*

#2

subscribe

#3

Version:7.x-1.x-dev» 7.x-2.x-dev

This should happen in 7.x-2.x now.

#4

doubleclick..

#5

We probably have to use strings as identifiers in the database instead of serials (like Rules does). If we keep using numbers as ID's, it will be hard to keep track of fonts across multiple environments. We could use identifiers like: [provider]_[font_path]

eg: google_fonts_api_ubuntu_mono

#6

I was thinking the URL field could work as a UUID across environments, since that's already specific to the provider-font combination.

My vague plan without looking at this much was to use Chaos Tools exportables functionality, just because that seems to be how most modules are handling exportables.

#7

Component:Code» Code (general)
Assigned to:Anonymous» BarisW

#8

Hey Baris,

You mentioned in IRC that the Chaos Tools exports you did don't show up in Views. If you can post the code you have for the exports, I'd like to look for a solution to that problem.

#9

Sure! See attached files. The plugins.zip should be extracted in the fontyourface_ui folder.

AttachmentSizeStatusTest resultOperations
exportables_changes.patch3.86 KBIgnored: Check issue status.NoneNone
plugins.zip3.46 KBIgnored: Check issue status.NoneNone

#10

Posted a support request here as well: #1315086: How to combine Views and Ctools Exportables?

#11

Status:active» fixed

Fixed and committed to 7.x-2.x-dev.

The solution was not to use ctools (as it has some limitation, see #1315086: How to combine Views and Ctools Exportables? but to use custom feature hooks, like described in http://treehouseagency.com/blog/thomas-wysocki/2010/10/28/making-your-mo...

#12

This is awesome guys! For anyone who needs a patch against 7.x-2.0-beta1 for a makefile, here it is :)

BarisW, you are a hero

AttachmentSizeStatusTest resultOperations
1080038-12_exportables-for-7.x-2.0-beta1.patch11.6 KBIgnored: Check issue status.NoneNone

#14

Status:fixed» closed (fixed)

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

#15

Will there be a 6.x backport of this functionality?

#16

Version:7.x-2.x-dev» 6.x-2.x-dev
Status:closed (fixed)» patch (to be ported)

We're not doing much more than maintenance on D6 at this point. That said, I'll add this to the long list of "to be ported" issues and if someone makes a patch, I'll review it.

#17

Thanks. I'm in my final week of work on this project, so I probably won't be able to roll a patch myself, but if I have a few minutes I'll give it a whack.

nobody click here