Open jascam opened 6 years ago
[SelormeyPaul@6/3/2011] Thanks for the information. I will try to prevent you from using the GDI+ renderer, just wait and see :)
[UnknownUser@6/3/2011]
[UnknownUser@6/6/2011]
[rpdom@6/6/2011] i attached another svg, which doesnt properly aligns the checkboxes @ wpf renderer. greetings :)
[SelormeyPaul@6/6/2011] Taken, looking into it.
[uecasm@10/11/2011] I'm seeing similar behaviour on my own images -- the GDI renderer appears to work, the WPF renderer completely fails. In my case, it looks like the main issue is that the WPF renderer seems to be ignoring the CSS styles (the text is not centred, and elements which are supposed to be hidden aren't). For the image, it's not scaling correctly (the default should be to scale an image up to fit its bounding box).
[SelormeyPaul@10/11/2011] @uecasm: It is possible to share your SVG file with me (post it here or send it to me)?
[UnknownUser@10/12/2011]
[uecasm@10/12/2011] I can't send you my original image, but I've made a test image (test.svg) that exhibits the same behaviour.
Using the GDI renderer, the image and text appear in their correct positions. Using the XAML renderer, the image appears with the wrong size and the text is offset to the right instead of being centred (note that the offset gets worse the longer the text is).
[UnknownUser@10/12/2011]
[uecasm@10/12/2011] (Attaching the test.png file that goes with it.)
Also, an unrelated bug that can be seen in this file is that neither renderer properly respects the "display:none" style. The "informative" box at the bottom of the image should not be visible. (Also, in theory, neither should be "line 5", although I've seen mixed results on that one. Inkscape still displays it, while Firefox does not.)
I've actually written a patch for the GDI renderer which fixes this second issue, although it does have to make a slightly dodgy cast to do so. Let me know where to send it if you're interested.
[SelormeyPaul@10/17/2011] @uecasm: Thanks for the test file. I am looking into the problem.
[UnknownUser@2/14/2013]
hi there, i have two sample SVGs which seem not to render properly. one has misplaced character(s) and the other doesn't stretch/positioning the bitmap properly. with the GDI+ renderer / internet explorer, they look right. right now im looking to use the GDI+ renderer in our WPF project, because it renders properly :) anyway, hope it helps you to improve this already great project. thanks a lot, greetings
Attachments
104-IDC_USESOLID.svg wmmc_g050.svg test.svg test.png
This work item was migrated from CodePlex
CodePlex work item ID: '564' Vote count: '2'