jascam / AnotherMigrateTest

0 stars 0 forks source link

two wpf rendering bugs (?) (text & image positioning) #37

Open jascam opened 6 years ago

jascam commented 6 years ago

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'

jascam commented 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 :)

jascam commented 6 years ago

[UnknownUser@6/3/2011]

jascam commented 6 years ago

[UnknownUser@6/6/2011]

jascam commented 6 years ago

[rpdom@6/6/2011] i attached another svg, which doesnt properly aligns the checkboxes @ wpf renderer. greetings :)

jascam commented 6 years ago

[SelormeyPaul@6/6/2011] Taken, looking into it.

jascam commented 6 years ago

[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).

jascam commented 6 years ago

[SelormeyPaul@10/11/2011] @uecasm: It is possible to share your SVG file with me (post it here or send it to me)?

jascam commented 6 years ago

[UnknownUser@10/12/2011]

jascam commented 6 years ago

[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).

jascam commented 6 years ago

[UnknownUser@10/12/2011]

jascam commented 6 years ago

[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.

jascam commented 6 years ago

[SelormeyPaul@10/17/2011] @uecasm: Thanks for the test file. I am looking into the problem.

jascam commented 6 years ago

[UnknownUser@2/14/2013]