Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[format] Retain foreign data #2

Closed
davelab6 opened this issue Jul 11, 2015 · 4 comments
Closed

[format] Retain foreign data #2

davelab6 opened this issue Jul 11, 2015 · 4 comments

Comments

@davelab6
Copy link

Problem

I made an example file, saved it, copied it, edited it in a text editor to add some "foreign" data, and then opened and saved it as a 3rd file. That file lost my data.

Files are here: https://gist.github.com/davelab6/c5fa105bcac695e83cae

Expected result

The 3rd file still has my data

Suggestion

Glyphs should retain arbitrary plist-conformant data in glyphs file

@schriftgestalt
Copy link
Owner

This is not supported (yet). I would like to avoid it as it poses some performance problems. And there is the userData dict that is intended to store custom data. the userData property is available at font, glyph, layer, node, fontMaster. I just saw that some of them are missing in the spec.

@davelab6
Copy link
Author

davelab6 commented Jul 11, 2015 via email

@schriftgestalt
Copy link
Owner

The performance is mostly a problem when saving. I don’t use a library or intermediate representation to write the file. The keys should be in alphabetical order and so I have to check after each of my keys, if there is a custom key available...

@davelab6
Copy link
Author

davelab6 commented Jul 12, 2015 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants