-
Notifications
You must be signed in to change notification settings - Fork 448
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
Dump contour values relative to each other instead of (0, 0) #661
Comments
There isn't. The compiler concerts them to absolute. We consider that a bye encoding detail. Why do you need that? |
When coordinates are absolute you can't move a point farther than 32,767. Currently With relative values I can work around this making steps of the maximum value so I end up at my ridiculous large value. I am experimenting so I understand you probably won't need this for production stuff. Edit: this is the full contour, which gives the overflow error. A single point with
|
You are misinterpreting the error. What we expose to user doesn't limit anything. You get the error because the relative step from -16384 to +16384 does not fit into a SHORT. You are free to take as many large steps as you want as long as the difference between consecutive ones does not exceed the SHORT range (-32768..+32767) |
Ah yes, check. Thanks for the explanation! |
In the spec I read about coordinates:
First coordinates relative to (0,0); others are relative to previous point.
Yet the coordinates dumped with ttx/FontTools all seem to be relative to (0, 0). Is there any way to dump/compile them relative to the previous point?
The text was updated successfully, but these errors were encountered: