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

Why can points have name labels, but contours cannot? #177

Open
ctrlcctrlv opened this issue Apr 14, 2021 · 6 comments
Open

Why can points have name labels, but contours cannot? #177

ctrlcctrlv opened this issue Apr 14, 2021 · 6 comments
Labels
proposal Proposed specification change. ufo4 UFO 4 issues.

Comments

@ctrlcctrlv
Copy link

FontForge supports naming its contours, but because the spec does not allow a name field for contours, only points, this data is dropped.

Is there a reason that contours cannot be named?

@moyogo
Copy link
Collaborator

moyogo commented Apr 14, 2021

That maybe something to consider for UFO4.

For UFO3, FontForge can use the public.objectLibs key to store object data like the contour name.

@benkiel
Copy link
Contributor

benkiel commented Apr 14, 2021

See context here: #115

@benkiel benkiel closed this as completed Jan 21, 2022
@ctrlcctrlv
Copy link
Author

@benkiel I still think <contour> should allow name="…" for consistency sake, but respect your opinion it belongs in <lib>…</lib>. I presume so that people can represent a contour as a simple vector/linked list type?

@benkiel
Copy link
Contributor

benkiel commented Jan 21, 2022

I'm going to open this again as a thing to possibly consider for UFO4, but here is my current thinking on this:

For this kind of thing, having a contour.lib is much more flexible. A lib for a contour would let an editor store multiple things about the contour that it may want to know (name, its selection state, hinting info, special editor specific transformations to apply, etc —note these examples are just that, possibilities off the top of head, not things that are currently happening). It's much more flexible, and I like having that flexibility.

@benkiel benkiel reopened this Jan 21, 2022
@benkiel benkiel added proposal Proposed specification change. ufo4 UFO 4 issues. labels Jan 21, 2022
@typemytype
Copy link
Contributor

typemytype commented Jan 22, 2022

contours have identifiers same like points have, to connect additional data

and like Ben proposed a lib for-everything is much more flexible

@ctrlcctrlv
Copy link
Author

Flexibility and consistency are different (not necessarily mutually exclusive) goals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposed specification change. ufo4 UFO 4 issues.
Projects
None yet
Development

No branches or pull requests

4 participants