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

WIP: refactor svg #3673

Closed
wants to merge 4 commits into from
Closed

Conversation

rettinghaus
Copy link
Contributor

This aims to get rid of the unwanted css attribute overflow from the SVG output.

Instead of extracting the symbols from each font the paths are put in a g element for referencing in the SVG.
That removes the previous need for a @viewbox on every glyph and the later resizing with @width and @hight (making the resulting SVG way smaller).

The scaling for the glyphs is added during adding the snippets in Verovio.

Currently it is hard-coded, so scaling with this doesn't work.

@rettinghaus rettinghaus marked this pull request as draft May 8, 2024 16:21
@lpugin
Copy link
Contributor

lpugin commented Feb 18, 2025

Coming back to this, I prefer not to touch it. The way the SVG is supported by various SVG renderers has been carefully adjusted and I don't see the need to change it for SharpVectors. My experience has shown that changing things like this will quite likely break rendering with another SVG renderer.

@lpugin lpugin closed this Feb 18, 2025
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

Successfully merging this pull request may close these issues.

3 participants