Issue 18664 - Whole texts look moving up in Grid Text with Asymmetric DPI
Summary: Whole texts look moving up in Grid Text with Asymmetric DPI
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: ulf.stroehler
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks: 18599
  Show dependency tree
 
Reported: 2003-08-26 02:45 UTC by khirano
Modified: 2004-01-29 16:07 UTC (History)
2 users (show)

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


Attachments
Zipped three sample Grid Texts (17.50 KB, application/octet-stream)
2003-08-26 02:49 UTC, khirano
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description khirano 2003-08-26 02:45:53 UTC
Is it possible to always display correct grid texts on any physical resolutions
including asymmetric DPI? 

For example, an initial Redhat9 installation sets Monitor's DisplaySize
(under "Monitor" section in /etc/X11/XF86Config) to 330mm x 240mm.
(These size settings may depends on linux distributions, monitors, video cards,
XFree86 versions etc.)

If you perform "xdpyinfo" on this system, it shows:
screen #0:
dimensions: 1024x768 pixels (333x241 millimeters)
resolution: 78x81 dots per inch

As you see, physical resolution, or DPI (dot per inch) is set to 78x81,
which I call an asymmetric DPI setting.

Now with the asymmetric DPI setting, whole texts look moving up
(or spaces between characters get narrower) in Grid Text.
  
Please compare the following screenshots:
DPI: 78x81
http://www.transwift.net/ooo/rhl9atvt2z.png
DPI: 78x78
http://www.transwift.net/ooo/rhl9atvt6f.png

Please take a look at the following page for details.
http://www.transwift.net/ooo/grid_linux.html

I will attach sample texts.
Please refer to the grid text and other settings for these texts:
http://www.transwift.net/ooo/grid_sample_setting_en.html

Now again, is it possible to always display correct grid texts on any physical
resolutions including asymmetric DPI? 

Thanks
Comment 1 khirano 2003-08-26 02:49:01 UTC
Created attachment 8753 [details]
Zipped three sample Grid Texts
Comment 2 khirano 2003-08-26 08:01:15 UTC
I added some screenshots on Vine Linux 2.1.5 (OOo1.1beta2),
SuSE8.1 and SuSE8.2 (OOo1.1rc4) to the following page:
http://www.transwift.net/ooo/grid_linux.html

Thanks
Comment 3 hdu@apache.org 2003-08-27 09:08:01 UTC
. 
Comment 4 hdu@apache.org 2003-08-29 13:18:54 UTC
The fix sounds easy: account for the different x-dpi and y-dpi when 
adjusting display text to the printer. A problem with the obvious fix is to 
avoid the related "dancing chars" problem. 
Comment 5 hdu@apache.org 2003-09-01 10:56:55 UTC
changing status 
Comment 6 hdu@apache.org 2003-09-01 17:20:39 UTC
Fix in CWS vcl7pp1r2 
Comment 7 khirano 2003-09-02 04:12:51 UTC
Hi hdu,
Thanks for your solution.
BTW, what is "dancing chars"?
Is this also fixed in CWS vcl7pp1r2?
Thanks
Comment 8 hdu@apache.org 2003-09-02 11:23:09 UTC
> BTW, what is "dancing chars"? 
 
Text is layouted on the printer and the character positions there will be used 
to position them on the display. Since both devices have not related 
resolutions there will be rounding errors. 
 
E.g. a text "ab" has the printer positions 0 100 which gets converted to the 
display positions 0.0 10.4 before and 0 10 after rounding. When the text is 
now changed to "aab" the printer positions are 0 100 200 and the display 
positions are 0.0 10.4 20.8 before and 0 10 21 after rounding. So the 
distance between "a" and "b" is increased by one pixel on the display => the 
characters seem to be "dancing" 
 
> Is this also fixed in CWS vcl7pp1r2? 
 
Yes. 
Comment 9 philipp.lohmann 2003-09-08 16:14:27 UTC
pl->sba: please verify in CWS vcl7pp1r2
Comment 10 stefan.baltzer 2003-09-22 14:45:30 UTC
SBA: Reassigned to Ulf.
Comment 11 stefan.baltzer 2003-09-22 14:46:09 UTC
SBA: Set status to "Fixed".
Comment 12 ulf.stroehler 2003-09-23 17:43:44 UTC
hmm. The fix is well thought of, and works in general; but
unfortunately the wordprozessor also calculates for a (virtual)
printer device, which has a different resolution. In other words: for
extreme asymetric resolutions/dpi the problem issue is still visible.

Reopening issue.
Comment 13 ulf.stroehler 2003-09-23 17:45:11 UTC
reassigning issue to hdu.
Comment 14 hdu@apache.org 2003-09-24 13:01:41 UTC
.
Comment 15 hdu@apache.org 2003-10-17 14:35:51 UTC
Changed in CWS vcl7pp1r3, so that slightly different x- and
y-resolutions get ignored by moving the x-dpi adjustment to
GetResolution() instead of GetScreenFontResolution() on UNX.
Comment 16 hdu@apache.org 2003-11-13 09:59:55 UTC
HDU->US: please verify in CWS vcl7pp1r3
Comment 17 ulf.stroehler 2003-12-18 13:22:53 UTC
Changing resolution to fixed in order to mark it verified.
Comment 18 ulf.stroehler 2003-12-18 13:23:50 UTC
Issue verified in CWS vcl7pp1r3.
Comment 19 ulf.stroehler 2004-01-29 16:07:06 UTC
ok in master workspace srx645_m27s1-1.8738.
Fix will be in forthcoming OOo 1.1.1.
Closing Resolved/Verified issue.