Re: Bug#218919: Call for OOo user interface font size testers
On Fri, 2003-11-14 at 16:38, Nikita V. Youshchenko wrote:
> - physically measured the visible picture dimensions for monitors, and
> added correct "DisplaySize" parameter to XF86Config-4 (Section "Monitor").
> For 17'' monitor, it is 320x240 mm.
>
> - removed any "-dpi XXX" parameters from command-line of X (in my case, X
> command line is in /etc/kde3/kdm/Xservers)
This is very useful stuff. I didn't know about the DisplaySize setting
- that sounds much better than specifying -dpi on the X server command
line.
>
> - added the following script as /etc/X11/Xsession.d/95dpi:
> dpi=`xdpyinfo |
> awk '/resolution/ {split($2, x, "x"); print(int((x[1]+x[2])/2))}'`
> echo "Xft.dpi: $dpi" | xrdb -merge
Actually, the Xft.dpi setting is more of a workaround for a faulty X
setting; it shouldn't be necessary at all if the X server is set up
properly as you did. Hmm, I wonder how to tell gnome-settings-daemon
not to mess with it..
> So both X protocol-level dpi and Xft.dpi are calculated to correct value
> automatically depending on selected display resolution and physical
> monitor size.
>
> After that, I do get correct font sizes.
> Even more, the displayed size of paper sheet displayed by OpenOffice.org at
> scale=100% is the same as the size of physical paper sheet!
>
> Also I get the same physical font size on different display resolutions. I
> verified it, it works.
Wow, cool.
> Perhaps such auto-calculation of dpi should become Debian default.
Yes, I agree it would be nice. But that belongs in the X department,
not with us.
However, I do think we should try and put all this down in the
README.Debian, because I'm sure that being able to display documents at
100% as true physical size is something that many people would like to
do.
Chris
Reply to: