Issue 59169 - Asian characters in WMF displayed extremely condensed
Summary: Asian characters in WMF displayed extremely condensed
Status: ACCEPTED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P4 Trivial (vote)
Target Milestone: OOo 3.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa, regression
Depends on:
Blocks:
 
Reported: 2005-12-10 08:58 UTC by zhipengzhang
Modified: 2013-02-07 21:49 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
the example (26.50 KB, application/msword)
2005-12-10 08:59 UTC, zhipengzhang
no flags Details
word viewer vs OOo 2.0.1 vs OOo 2.0 (143.43 KB, image/png)
2005-12-11 12:23 UTC, lohmaier
no flags Details
word viewer compared to OOo 1.1.5 - as it should be. (109.85 KB, image/png)
2005-12-11 12:24 UTC, lohmaier
no flags Details
I can not see the words under the red circle, but MSWord can see it. (223.80 KB, image/png)
2006-02-17 01:24 UTC, zhipengzhang
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.