-
Notifications
You must be signed in to change notification settings - Fork 185
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
Symbol clipped in SharpVectors renderer #3670
Comments
This has happened before (or something similar), so there is probably an old issue for this (but I cannot find it at the moment). |
It is probably connected to the handling of the overflow attribute set on symbol level. |
Yes, I am pretty sure that is what I was thinking of. |
The header of Verovio SVG ouput has overflow set to visible. I tried with overflow=visible for each element, without effect. Documentation overflow at mozilla.org
Even the example at Mozilla clips when overflow=visible, in their interactive rendering playground. I see two possible issues:
Although the documentation is quoted in the source code before the code concerned with overflow, I'm not sure the attribute is effective.
For example the definitions of the glyph E0A4, In E0A4.xml, The viewBox can only clip the path. The same happens for all the fonts. |
Here is some CSS code that I use on VHV, probably related to this problem: svg:not(:root) {
overflow: inherit;
} This implies that probably the |
I'm working on a solution in #3673. |
@rettinghaus are you still working on this? |
@lpugin basically yes, but hadn't had the time recently. Will pick it up again later. |
Describe the problem
SVG output rendered with SharpVectors, symbols appear clipped
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shapes of the symbols complete
Input data
The smallest example to reproduce the problem
Verovio information
See the header of SVG
Environment information (as appropriate)
Screenshots
SharpVectors rendering
Any online browser rendering
Additional context
It seems that the SVG viewBox declaration in
<symbol id="E0A4-1hmocrk" viewBox="0 0 1000 1000" overflow="inherit">
is interpreted by SharpVectors as an instruction to clip the rendering.But the path of a symbol goes in the negative Ys, outside of the viewBox, and is clipped.
If viewBox is set to "0 -200 1000 1000" for example, the full shape reappears
Is the viewBox generated by Verovio correct ?
The text was updated successfully, but these errors were encountered: