[pkg-fso-maint] Bug#500626: xserver-xglamo: fonts are very large in e.g. midori

Luca Capello luca at pca.it
Sun May 17 21:26:56 UTC 2009


tags 500626 + upstream
forwarded 500626 http://thread.gmane.org/gmane.comp.handhelds.openmoko.framework/94
tags 500626 + wontfix
thanks

Hi Timo!

FYI, I re-discovered this bug because it is "present" in the
xserver-xorg-video-glamo package as well.

On Mon, 29 Sep 2008 22:29:43 +0200, Timo Juhani Lindfors wrote:
> With xserver-xglamo (and matchbox-window-manager) fonts in midori are
> very large. For example when I open the file menu the "quit" option is
> outside screen. xpdyinfo reports
>
> dimensions:    480x640 pixels (43x58 millimeters)
>   resolution:    284x280 dots per inch
>
> which is probably correct so maybe we need some GTK option to use
> smaller fonts?

Both the dimensions and resolution above are correct, see

  http://thread.gmane.org/gmane.comp.handhelds.openmoko.framework/94

> Under xserver-xorg-video-fbdev xpdyinfo reports
>
>   dimensions:    640x480 pixels (169x127 millimeters)
>   resolution:    96x96 dots per inch
>
> and the fonts look ok. I seem to be able to set this fake DPI value
> with xserver-xglamo by using
>
> -dpi 96
>
> in /etc/X11/xinit/xserverrc -- maybe that should be the default so
> that glamo would work consistently in the same way fbdev does?

While I would agree with you, this however is not upstream's view

  http://thread.gmane.org/gmane.comp.handhelds.openmoko.framework/94/focus=132

I should say that I share upstream's view here: the Xserver's detection
is correct, thus it is not Xserver's fault.  That is why I marked this
bug as wontfix.

There are various workaround:


1) DPI specified to xinit/startx, the one you suggested since the
   beginning

   This is the more general one and is valid for all users of a given
   device.  At the same time, however, it is not conceivable from a
   package POV, since it is nothing more than a workaround for other
   bugs not in the package itself.


2) fake Monitor section in /etc/X11/xorg.conf

     Section "Monitor"
         Identifier "Configured Monitor"
         DisplaySize 127 169 # 480x640 @ 96 DPI
     EndSection

   This because the dimensions in mm must be calculated for both
   dimensions according to the following formula:

     pixel x 25.4 / DPI

   The problem in this case is the same as with the first solution.


3) graphical toolkit-specific settings, which seems not to affect every
   application using the same toolkit, as Enrico Zini reported at

     http://thread.gmane.org/gmane.comp.hardware.smartphones.userland/1220

   For the reason above, I would discourage this option, moreover it
   must be set for each graphical toolkit used :-(


4) DPI specified in ~/.Xresources as Gregor Herrmann suggested at

     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500626#51

   This seems the best one: it has the advantage of being transparent
   (since the Xserver keeps its own and auto-detected settings) and it
   is user-specific (thus even non-root users can activate it).


I guess the best option would be to add a note into README.Debian, what
do you (and the other people/list cc:ed) think?

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090517/f5d8327c/attachment.pgp>


More information about the pkg-fso-maint mailing list