-
Notifications
You must be signed in to change notification settings - Fork 30
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
Separate font.lib-like file for user interface state? #121
Comments
I assume the If there are common UI states across multiple editors a public lib key can be made. |
Good point. I think the spec should say lib is not for ui state, and apps should store it in the data folder. |
Yes, that sounds like a good idea to separate the two. For example in glyphsLib we're storing open tabs (called "display strings") in a lib key, and that creates some not very useful diffs. |
These are both great ideas. I'll take this on since it's just some writing. I'll think about it over the next few days and write a draft here. |
I guess fontParts could implement this as a lib-like api. For example, I don't think RF extension developers should have to do this directly with ufoLib or even a raw |
Yes, it could do, and then it could be more generic than just RF. |
small comment: fontParts has not yet support for the data folder (this is a different issue in a different repo) |
Here's a draft with the bulk of the normative language copied/pasted from Addition to /data documentation: public.interfaceLib.plistThis file name is reserved for a property list containing arbitrary interface settings in a lib structure identical to [lib.plist]. The property list data consists of a dictionary at the top level. In order to prevent conflicts in the lib, keys in the top level should follow a reverse domain naming scheme. The pattern "public.*", where Addition to lib.plist documentation: It is recommended that interface data be stored in the Addition to GLIF It is recommended that interface data be stored in the |
+1 |
Currently we don't differentiate between lib items that contain important custom data for a project and lib items that hold some UI state for an editor. UI state usually is not desirable to put under version control.
An optional
font.ufo/uistate.plist
file could solve this, as it could be easily ignored by version control systems.The text was updated successfully, but these errors were encountered: