Xvfb and -dpi not working

Roland Mainz roland.mainz at nrubsig.org
Tue Mar 22 16:22:16 PST 2005


"Kirby C. Bohling" wrote:
> I'm trying to resolve some issues I'm having.  The long and the
> short of it is, I have an application (an Oracle9iAS Server), that
> is using Java, which eventually interacts with X to render fonts for
> PDF reports.  I'm running on a RHEL2.1 server, which runs the
> version of X from pre-XFree86 fork.  However, I'm fairly confident
> the expertise I need is still on this list.  I might file a bug thru
> RedHat, but I was hoping I'd have better luck here.  I've tried this
> w/ RHEL2.1 and RHEL3.0 versions of XFree86 (4.1 and 4.3
> respectively)
> 
> After much anst, I've figured out that if I run my reports with
> DISPLAY variable pointing to a 90dpi server, I get different results
> then if I run the reports at a server running 100dpi.  In the end,
> my desktop monitor is 90x89 DPI (as reported by xdpyinfo).
> 
> I'm running Xvfb and pointing the reports server at that for the
> automated report generation.  So all my reports look right at 90DPI.
> I'd really like to run Xvfb at 90 DPI.  So naturally, I tried
> setting it via:
> 
> Xvfb :1 -screen 0 1280x1024x24 -pixdepths 1 8 16 24 32 -fbdir /tmp/ -dpi 90 -pn -fp "unix/:7100"
> 
> No joy.  xdpyinfo -display :1 still reports 100x100 DPI.

The problem is hidden in Xvfb code which hardcodes the value to 100DPI
and does not listen to the "-dpi" option.

I filed https://bugs.freedesktop.org/show_bug.cgi?id=2789 ("Xvfb does
not honor the "-dpi" option") for the issue...       

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)



More information about the xorg mailing list