Quote:
Originally Posted by
prathap.g
case 1: if u connect to XServer then U will get 100x100 dpi when u type xdpyinfo command.
case 2:if u connect to XServer enabled with "XVFB" then U will get 90x90 dpi when u type xdpyinfo command.
I want 100x100 dpi in the above Case2. Please solve this issue.
First off: please kindly refrain from using leet-speak here. Most of us shun that practice and if you save on even the two keystrokes writing "u" instead of "you" why should we undergo the effort to write complete answers to your questions?
Second: I already told you to read the documentation which says:
Quote:
In addition to the normal server options described in the Xserver(1) manual page
Would you have done that, you would have found (
at this page) the following:
Quote:
−dpi resolution
sets the resolution for all screens, in dots per inch. To be used when the server cannot determine the screen size(s) from the hardware.
Quoting further from the manual page:
XVFB (X Virtual Frame Buffer) is an X server that can run on machines with no display hardware [...] It emulates a dumb framebuffer [...].
It is clear that the software cannot determine the screen size and/or resolution of a virtual device. Therefore this value has to be set by the commandline. Exactly this is what the "-dpi" command line switch is for - to provide a value when the X server cannot determine it itself.
I suggest you put a little more effort not only in your writing but also in solving your problems. I promise your Unix experience will take on a complete new quality and eternal happiness anywhere near a command line will await you. :-))
I hope this helps.
bakunin