-
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
Text size to small in WPF SvgViewBox and SvgCanvas #144
Comments
@mcdikki This is due to the unsupported CSS feature, font CSS shorthand property . The added font CSS shorthand property parser passes all except one of the following test cases: string[] inputs = {
"bold 100px sans-serif",
"10px sans-serif",
"bold italic small-caps 1em/1.5em verdana,sans-serif",
"1.2em \"Fira Sans\", sans-serif",
"italic 1.2em \"Fira Sans\", serif",
"italic small-caps bold 16px/2 cursive",
"small-caps bold 24px/1 sans-serif",
"caption",
"bold 16px/1.5 Arial, sans-serif",
"italic small-caps normal 13px/150% Arial, Helvetica, sans-serif",
"normal normal 23px/250%",
"condensed oblique 12pt \"Helvetica Neue\", serif",
"300 italic 1.3em/1.7em \"FB Armada\", sans-serif",
"condensed oblique 25deg 800 12pt \"Helvetica Neue\", serif", //<== This one fails due to that value: 25deg
"900 14pt/16pt \"Heisei Mincho W9\", serif",
"800 14pt/16.5pt \"Li Sung\", serif",
"italic small-caps bold 18px/120% \"Josefin Sans\", sans-serif"
}; |
@paulushub Thank you very much for the quick response. Is the fix available in the latest nuget package or do I need to add it to my project in an other way? |
@mcdikki There is no nuget package yet, it is committed to the repository for testing. After resolving some other issues and/or code improvements, I will create a new nuget package. |
Looks good. Thanks again. |
I have a SVG with very basic geometries and texts.
When I try to render it in the WPF SvgViewBox or SvgCanvas, the text is rendered way to small.
The SVG renders fine in all Browser I've tested (FF, Opera and Chromium).
WPF SvgViewBox:
Browser (Opera), expected:
My WPF part:
Service.SvgStream
is a MemoryStream with the SVG data.The svg:
Nuget-Package:
Framework: Net Core 3.1
Thx!
Update: Tried to add the xmlns as suggest here #93 but without a difference.
The text was updated successfully, but these errors were encountered: