LO seems to wrongly scale dashes in pen strokes and not consider PS_INSIDEFRAME for PenStyle in EMF.
Steps to Reproduce:
Open attached EMF sample.
LO draws almost solid lines with a minimal gaps. Middle shape in the bottom row has the same size as other shapes.
MS seems to use pen width to calculate the radius of the dots and add a gap of about same size between dots and/or dashes.
Width of the pen have to be equally distributed on both side of the path for all pens except PS_INSIDEFRAME (middle in the bottom row).
For PS_INSIDEFRAME according to the spec all width of the pen should be used inside of the path -- the shape size should match with BBox.
User Profile Reset: No
Thin black lines are added to highlight the difference. Y-coord for them are 200, 210, 360. Shapes on the bottom line have their Ymin/Ymax at 210 and 360.
Pen width is 20.
Created attachment 171771 [details]
EMF sample with different pen styles
Created attachment 171772 [details]
Screenshot of the sample EMF file opened in MS Paint
Created attachment 171773 [details]
WMF sample for pen styles
For WMF pen styles seems to be completely ignored.
WMF uses CreatePenIndirect MR.
EMF uses CreatePen MR.
Created attachment 171867 [details]
How it looks in LibreOffice 7.2 master
Penstyles are displayed like in the screenshot since
author Chris Sherlock <email@example.com> 2016-03-03 21:52:49 +1100
committer Chris Sherlock <firstname.lastname@example.org> 2016-03-04 18:23:15 +0000
commit 6381d26d73c614681601fda4a49c96e11a0e6f06 (patch)
parent c788f63726df3340e787bb92477d7ad31e7bc952 (diff)
tdf#79679 vcl: dashed lines show as solid lines when importing EMF files
Before this commit they were displayed a a solid line.
@Chris Sherlock, I thought you might be interested in this issue