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

Point().selected #83

Closed
BlackFoundry opened this issue Feb 19, 2019 · 2 comments
Closed

Point().selected #83

BlackFoundry opened this issue Feb 19, 2019 · 2 comments

Comments

@BlackFoundry
Copy link

Wouldn't it be nice / meaningful to have a (bool) flag to specify whether a Point is selected? I think that is one thing that is missing to directly make a simple UI on top of the UFO format. Might be useful to store the selection state of an object too (?)

@madig
Copy link
Contributor

madig commented Mar 6, 2019

I'm still not so sure this maps nicely to the format, as the current flags for a point contribute to its interpretation, whereas a selected property is purely UI state.

Maybe you can find a way to use a glyph's lib dict to store the information? Something like, on selection, you assign an identifier to a point unless it already exists and use a lib key in the glyph like com.black-foundry.trufont.selectedPoints to hold a set of identifiers. A selected() property would do return self.identifier in glyph.lib["com.black-foundry.trufont.selectedPoints"] or something. You'd have to subclass Point of course.

@typesupply
Copy link
Contributor

We will be adding a lib-like place to store interface data such as this as a public location in the data directory soon. See #121.

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

3 participants