-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement transformation for glyph contents when kurbo available #110
Comments
mm. I was also today running into decomposition, so I do think it makes sense to have a |
Then all the affine transformations would need to be impl'd on norad's affine type, no? I thought we should reuse kurbo for that. |
Can we also have a let transform = [
component.transform.x_scale as f64,
component.transform.xy_scale as f64,
component.transform.y_scale as f64,
component.transform.yx_scale as f64,
component.transform.x_offset as f64,
component.transform.y_offset as f64,
];
Affine::new(transform) |
@simoncozens we've got this already: https://github.com/linebender/norad/blob/master/src/glyph/mod.rs#L556 |
Hah, great. Not sure why I couldn’t see it on docs.rs - maybe it doesn’t pick up stuff behind features. |
Yes, I think that's true. |
* Convert Contour to Kurbo path. See #110 * Correct start-of-path processing * Add to_kurbo method to ContourPoint * Match the slice, not the length of the slice * Smarter way of rotating the contour * .clear, not .truncate a vec * Index-free quad implementation * This turns out to be important * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Colin Rofls <[email protected]>
I'd like to be able to do
kurbo::Affine * Contour
or some such, found at least two instances where that would come in handy. Maybe something for returning a transformed copy and for transforming in place?The text was updated successfully, but these errors were encountered: