Xvfb and -dpi not working
Kirby C. Bohling
kbohling at birddog.com
Tue Mar 22 17:35:17 PST 2005
On Wed, Mar 23, 2005 at 01:22:16AM +0100, Roland Mainz wrote:
> "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...
>
Roland,
I just read the bug. I thought there was no hope for getting it
fixed from my e-mail. This won't help my current plight other then
to let me know I didn't do something silly. However, I appreciate
the fix and the response. If nothing else once I finally get to use
Xorg in production, I won't have this problem any more.
Thanks,
Kirby
More information about the xorg
mailing list