Astroid-Framework icon indicating copy to clipboard operation
Astroid-Framework copied to clipboard

import export local custom fonts

Open shoulders opened this issue 6 years ago • 4 comments

when a termplate is using custom fonts they whould also be part of the import/export process.

shoulders avatar Oct 02 '19 14:10 shoulders

The import/export is merely a JSON and including anything additional would have to be a zip file.

Then we have to extract it on upload too.

chetanmadaan avatar Oct 03 '19 20:10 chetanmadaan

could you not base64() encode the font files?

Divi encodes full pages via the .JSON images etc.. , could work for fonts.

Simple example

  • glob files in custom font directory
  • take each file and convert to a base64
  • insert into and array/JSON

shoulders avatar Oct 03 '19 22:10 shoulders

We could very well base64 encode and decode fonts.

It's a good idea. You know once of the things we had in mind was the ability to select what to export and what to import. Each tab be a checkbox. What do you think about that?

chetanmadaan avatar Oct 06 '19 20:10 chetanmadaan

sounds great. this would be nice to be added to that list.

shoulders avatar Oct 06 '19 21:10 shoulders