Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-29-2008, 10:54 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Posts: 5
Rep:
|
postscript aspect ratio in KGhostView
When I open *.eps and *.ps files using KGhostView they always appear squished in the horizontal axis or, if you prefer, stretched vertically. Some other facts:
1. When I use ps2pdf to convert the doc the pdf looks great.
2. I have orientation and paper size both set to 'auto' in KGhostView, and picking other settings at random does not cure the ill.
3. This problem affects all postscripts that I've ever tried to open. When I open the same files in Windows XP they look fine - not corrupted.
4. I used to have a similar problem in gv but changing from "Natural Size" to "Pixel-Based" in gv fixed it. I can now view the eps file as it is supposed to look...but only in gv, not KGhostView. I can't find any similar options in the menus of KGhostView. Does anyone know how to change that option in KGhostView?
5. I'm running on a widescreen hp laptop (pavilion zt3340us).
BTW, the thumbnails in Konquerer also look good but when the file opens w/ KGhostView in the Konquerer window, it's distorted. Thanks in advance for any help you can lend!
OS: Linux 2.6.22.5-31-default i686
System: openSUSE 10.3 (i586)
KDE: 3.5.7 "release 72.9"
Display Vendor: ATI Technologies Inc
Model: RV250 Lf
Driver: radeon (3D Support)
|
|
|
|
10-30-2008, 05:46 AM
|
#2
|
|
Member
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Rep:
|
Try typing the following command:
xdpyinfo | grep resolution
if the resolution is ok, you should obtain something like:
"resolution: 106x106 dots per inch"
with the same value for both axis. If that's not the case, you have to change something in the xorg.conf, I think you should act on the "DisplaySize" value in the monitor section.
|
|
|
|
10-30-2008, 08:31 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Posts: 5
Original Poster
Rep:
|
Thanks for your suggestion. Here is the result of the command that you mentioned:
> xdpyinfo | grep resolution
resolution: 49x98 dots per inch
And my "Monitor" entry in xorg.conf:
Section "Monitor"
DisplaySize 662 207
HorizSync 29-62
Identifier "Monitor[0]"
ModelName "LCD MONITOR"
Option "DPMS"
VendorName "LGP"
VertRefresh 43-60
UseModes "Modes[0]"
EndSection
what values should I use for DisplaySize?
|
|
|
|
10-30-2008, 09:43 AM
|
#4
|
|
LQ Newbie
Registered: Oct 2008
Posts: 5
Original Poster
Rep:
|
Another forum mentioned that the "DisplaySize" value is the physical size of your screen in mm. I could have gotten the value by multiplying the resolution by the pixel size in mm but I'm too lazy to find out those things. I just commented out the "DisplaySize" line and now I have: "resolution: 75x75 dots per inch" and everything works great in all ps viewers! I had to adjust some font sizes but no big deal. Thanks so much for your help, this has been pestering me for a long long time
|
|
|
|
10-30-2008, 11:39 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2008
Posts: 5
Original Poster
Rep:
|
I started having troubles getting fonts to look the right size in all of my programs at once so I went back and did it the right way. I found my dot pitch value (0.259 mm) on Wikipedia's "Dot Pitch" page and changed my "DisplaySize" value to 331 207. This is the result of my screen res (1280x800) multiplied by the dot pitch. Apparently the automatically determined number in xorg.conf mistakenly multiplied the x-axis value by 2. Now I get 98x98 dpi instead of 75x75 - sweet!
|
|
|
|
10-31-2008, 05:00 AM
|
#6
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I simply measured my laptop's screen with a metric ruler.
|
|
|
|
10-31-2008, 09:31 AM
|
#7
|
|
LQ Newbie
Registered: Oct 2008
Posts: 5
Original Poster
Rep:
|
of course I did that at first too but my nerd-core needed to do it the mathy way.
|
|
|
|
10-31-2008, 05:07 PM
|
#8
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
One has to feed the nerd-core. It also like copious quantities of Dr. Pepper.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:20 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|