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

improve api compatibility with defcon #201

Open
m4rc1e opened this issue Feb 11, 2022 · 1 comment
Open

improve api compatibility with defcon #201

m4rc1e opened this issue Feb 11, 2022 · 1 comment

Comments

@m4rc1e
Copy link

m4rc1e commented Feb 11, 2022

I know the readme states that ufoLib2 tries to be api compatible with defcon but would you folks mind if I add some attribs to improve the compatibility? e.g for Point Defcon has segmentType whilst this has type. Would there be any harm in ufoLib2 having both type and segmentType?

Feel free to ignore this. It's only a nit.

@anthrotype
Copy link
Member

hey! We already have Point.segmentType property as alias of Point.type:

@property
def segmentType(self) -> str | None:
"""Returns the type of the point.
|defcon_compat|
"""
return self.type

Sure, feel free to contribute more of these

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