Skip to content

Add Vello support for non-scaling stroke width #2526

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

Open
Keavon opened this issue Apr 7, 2025 · 0 comments
Open

Add Vello support for non-scaling stroke width #2526

Keavon opened this issue Apr 7, 2025 · 0 comments
Labels
Graphics GPU and graphics programming related

Comments

@Keavon
Copy link
Member

Keavon commented Apr 7, 2025

See Stroke::non_scaling in style.rs.

This is used by the Outline view mode and works in our SVG renderer but isn't supported in our Vello renderer.

As for whether we allow users to set this on their own vector data, this needs some consideration because it violates our usual rule on scale invariance that's needed for consistent views of procedurally generated artwork regardless of scale. We could possibly make this the concept of a "hairline stroke" and find a way to draw it that's consistent across scales, such as making its thickness zero as far as any procedural operator nodes are concerned. Another option is to consider the "zoom factor" input to the Context call argument which lets nodes explicitly generate different content (such as level of detail in an OpenStreetMap view) when zooming (unless overridden and locked to a specific value in the navigation zoom popover).

@github-project-automation github-project-automation bot moved this to Short-Term in Task Board Apr 7, 2025
@Keavon Keavon added the Graphics GPU and graphics programming related label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graphics GPU and graphics programming related
Projects
Status: Short-Term
Development

No branches or pull requests

1 participant