|
Description
mathog
2012-09-18 16:46:02 UTC
Created attachment 67336 [details]
Test file as seen in Windows Preview
Created attachment 67337 [details]
Test file in LODraw, low magnification
Created attachment 67338 [details]
Test file in LODraw, high magnification of one problem area
Created attachment 67339 [details]
Test file in LOdraw, high magnification of one problem area
Created attachment 67340 [details]
Test file in LODraw, high magnification of one problem area
Created attachment 67341 [details]
Test file in Inkscape, low magnification, for comparison
The attachment lodraw_himag3.png was made after "break" - it shows the loss of the dot/dash pattern on the lines. The relevant pieces of code in Inkscape are in the src/extensions/internal directory of that distribution, in the files: emf-inout.cpp emf-inout.h emf-print.cpp emf-print.h uemf.c uemf.h I suspect that items 9 and 10 are due to logic errors in the LODraw equivalent of the code at the top of the main read loop in emf-inout.cpp starting around line 1408. This is the code which determines at what point, during the processing of the EMF file, to stroke/fill each internal object, which turned out to be quite complex. There are also some differences in the handling of EMR_BITBLT between Inkscape and LODraw, but since those operations are very hard to translate to internal objects, I would be hard pressed to say which, if either, is doing it "right". Sorry, forgot the link to libUEMF: http://libuemf.sourceforge.net/ Created attachment 73863 [details]
EMF file with a nonIdentity rotation matrix in the WORLDTRANSFORM record
An email exchange with Valek Filippov has turned up an ancient bug in the EMF input implementation in inkscape - EMF WORLDTRANSFORM records with nonidentity rotation matrices result in a mangled drawing. Unfortunately LibreOffice 3.6 (on Windows XP, 32 bit) has much the same issue. The attached file is thoroughly mangled when imported into LODraw.
Created attachment 75058 [details]
Well-known Cisco's "router" icon in EMF format.
Problem with Polybezier16?
EMF attachment 75058 [details] includes "nested" EMF+(EMF(EMF+)).
Drawing outer EMF gives standard router icon with known "1 pxl off IntersectClipRect" problem.
Most inner EMF+ has DrawPath/DrawEllipse and FillPath/FillEllipse commands.
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.