Package: vnc4server Version: 4.1.1+X4.3.0-36 Severity: normal I was having issues with dpi and noticed in #382264 that I can actually specify -dpi # and it will be passed through to Xvnc4. However, this only sets fixed physical dimensions computed from the specified dpi that remain constant even when you use xrandr to change geometries. The end result is that the dpi scales along with the geometry change, which in turn results in progressively huger fonts as you choose larger geometries.
In the following example, I defined four geometries so that I could change between them to suit different sized client displays, and started vnc4server with "vnc4server -dpi 200" to verify that font sizes are indeed changed by this switch (this results in very large fonts due to the smaller computed physical size, making it very easy to verify at a glance -- I know it isn't a practical value :). See xrandr's output: SZ: Pixels Physical Refresh *0 640 x 480 ( 81mm x 61mm ) *60 1 800 x 480 ( 81mm x 61mm ) 60 2 800 x 600 ( 81mm x 61mm ) 60 3 1024 x 768 ( 81mm x 61mm ) 60 And after "xrandr -s 1024x768": 0 640 x 480 ( 81mm x 61mm ) 60 1 800 x 480 ( 81mm x 61mm ) 60 2 800 x 600 ( 81mm x 61mm ) 60 *3 1024 x 768 ( 81mm x 61mm ) *60 So now, what started as 200 dpi is actually 1.6x higher, or 320 dpi. What I think should be happening is when we initially set up the multiple geometries, we should be scaling the physical size proportionally so that the when xrandr is used to switch, dpi remains constant. My workaround is, every time I want to start a new application, I precede it with xrandr -s 640x480 (the smallest geometry) to set the dpi correctly, and afterwards, xrandr -s NxM to set it back to the desired geometry. It's clunky, but it works for now. Ben -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages vnc4server depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.2-9 GCC support library ii libice6 2:1.0.6-1 X11 Inter-Client Exchange library ii libsm6 2:1.1.1-1 X11 Session Management library ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3 ii libx11-6 2:1.3.3-1 X11 client-side library ii libxext6 2:1.1.1-2 X11 miscellaneous extension librar ii libxtst6 2:1.1.0-2 X11 Testing -- Resource extension ii x11-common 1:7.5+3 X Window System (X.Org) infrastruc ii xbase-clients 1:7.5+3 miscellaneous X clients - metapack ii xserver-common 2:1.7.5-1 common files used by various X ser ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages vnc4server recommends: ii xfonts-base 1:1.0.1 standard fonts for X Versions of packages vnc4server suggests: pn vnc-java <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

