-
Notifications
You must be signed in to change notification settings - Fork 134
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
SharpVectors.Dom.DomException: 'Style declaration ending bracket missing' #123
Comments
@mprevot Fixed the CSS parsing error that is throwing the exception but there is another issue. The current SharpVectors WOFF to TTF does not parse the contents of the individual font tables, looking into it. |
@paulushub Great. That's not a simple issue or simple ecosystem. I managed to bypass those issues by asking dvisvgm not to produce svg fonts but path (with option -n) and this XAML markup:
SharpVectors in that case works perfectly. -n, --no-fonts[=variant] |
@mprevot Never heard of the Please for the sample above, can you post the output for the |
I use tex/latex programs to convert mathematical formulas written (in latex language) in a WPF TextBox to dvi file then to svg file, and then draw the result back in WPF. dvisvgm is open source, it might be interesting for SharpVectors: The following SVG with path gives the same visual result as the SVG with fonts (at least when opened in a web browser):
|
- Reworked and completed the WOFF1 and WOFF2 support - Restoration of FontFamily names in WOFF1 when stripped out. Issue #123 - Fixed CSS parsing issue #206 - credit @marksolbergerbjorkerot
@mprevot I have finally resolved this issue! |
Description
In a WPF with MVVM paradigm, I'm having this bug that should not happen (did not see any missing bracket).
SharpVectors.Dom.DomException: 'Style declaration ending bracket missing'
Example data
XAML:
<svgc:SvgCanvas Source="{Binding SvgImage}"/>
Interface extract of the VM:
The full svg file code:
Used Versions
3.0.84, nuget
The text was updated successfully, but these errors were encountered: