Issue 59169

Summary: Asian characters in WMF displayed extremely condensed
Product: gsl Reporter: zhipengzhang <zhipeng.zhang>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: hdu, issues, ooo, sven.jacobi
Version: OOo 2.0.1Keywords: oooqa, regression
Target Milestone: OOo 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
the example
none
word viewer vs OOo 2.0.1 vs OOo 2.0
none
word viewer compared to OOo 1.1.5 - as it should be.
none
I can not see the words under the red circle, but MSWord can see it. none

Description zhipengzhang 2005-12-10 08:58:47 UTC
open a doc file that has a picture and is protected
the picture show very incorrectly
Comment 1 zhipengzhang 2005-12-10 08:59:51 UTC
Created attachment 32262 [details]
the example
Comment 2 zhipengzhang 2005-12-10 09:00:46 UTC
m142 is wrong, but m130 is right
Comment 3 lohmaier 2005-12-11 12:18:52 UTC
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.
Comment 4 lohmaier 2005-12-11 12:23:52 UTC
Created attachment 32277 [details]
word viewer vs OOo 2.0.1 vs OOo 2.0
Comment 5 lohmaier 2005-12-11 12:24:49 UTC
Created attachment 32278 [details]
word viewer compared to OOo 1.1.5 - as it should be.
Comment 6 michael.ruess 2005-12-12 10:52:43 UTC
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.
Comment 7 sven.jacobi 2006-02-16 11:22:44 UTC
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. 
Comment 8 zhipengzhang 2006-02-17 01:24:45 UTC
Created attachment 34233 [details]
I can not see the words under the red circle, but MSWord can see it.
Comment 9 hdu@apache.org 2006-03-15 09:58:28 UTC
@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.
Comment 10 sven.jacobi 2006-06-15 17:20:53 UTC
changed target
Comment 11 Mathias_Bauer 2007-12-04 13:30:34 UTC
target 3.0
Comment 12 sven.jacobi 2008-06-02 17:08:29 UTC
changed target
Comment 13 ooo 2011-03-14 15:32:22 UTC
setting fix priority for 3.4 to P4.