Apache OpenOffice (AOO) Bugzilla – Issue 59169
Asian characters in WMF displayed extremely condensed
Last modified: 2013-02-07 21:49:15 UTC
open a doc file that has a picture and is protected the picture show very incorrectly
Created attachment 32262 [details] the example
m142 is wrong, but m130 is right
confirming issue. 2.0 does a better job than 2.0.1, OOo 1.1.5 does a better job than 2.0 a continous regression. Since the wmf-picture doesn't seem to be fully standard-compliant, I lower the prio. see the screenshots for comparison.
Created attachment 32277 [details] word viewer vs OOo 2.0.1 vs OOo 2.0
Created attachment 32278 [details] word viewer compared to OOo 1.1.5 - as it should be.
MRU->SJ: the characters in the graphic seem to be too large, thus they are partly covering each other. In 1.1.x this looked better.
sj->hd: The problem seems to be the font width that is given by the VDev in svtools/source/filter.vcl/wmf/winmtf.cxx line ~300. There we use following code to determine the font width: if ( !rFont.lfWidth ) { VirtualDevice aVDev; aFont.SetSize( aFontSize ); aVDev.SetFont( aFont ); FontMetric aMetric( aVDev.GetFontMetric() ); aFontSize.Width() = aMetric.GetWidth(); } If you skip the code everything looks all right. Please have a look and change the target if you have a proper solution for OOo2.03.
Created attachment 34233 [details] I can not see the words under the red circle, but MSWord can see it.
@SJ: for the font width calculation you are using a virtual device. Make sure you set the map mode for it to match the map mode of the device you are targeting at. This will avoid such funny problems like rounding issues and problems with asymmetric mappings.
changed target
target 3.0
setting fix priority for 3.4 to P4.