Welcome to iraf.net Saturday, April 20 2024 @ 01:55 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Xgterm fonts
   
Gaba_p
 08/13/2009 07:49PM (Read 7705 times)  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
Hi,recently I modified my system (Fedora 9) by removing some stuff and apparently this changed something about the way 'xgterm' uses fonts, because now when it loads it displays the default font. I load (or use to, at least) 'xgterm' with the following command:xgterm -sbr -fn 9x15 -sl 400 -cr red -title IRAF -e "(ds9 &; chdir $HOME/iraf ; cl)"Now this doesn't work. It's like the '9x15' parameter isn't there any more (I've also tried '10x20', but still nothing)The only thing that seems to work is if I replace '-fn 9x15' with '-font lucidasanstypewriter-14'. I can change the '14' to 8, 10 or 12 but not to 11 or 9. If I do so, it goes back to the default font.I've looked around, but I couldn't found anywhere a way to select a different font for 'xgterm'.It's not much of an issue, but it's annoying.
Any help will be much appreciated.Cheers,
Gabriel

 
Profile Email Website
 Quote
fitz
 08/13/2009 07:49PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The answer may depend on exactly what it is you removed, but assuming it wasn't any of the fonts..... Fonts like 9x15 are pretty standard are should be in a directory like /usr/X11R6/lib/X11/fonts/misc. X11 finds files like this using the XFILESEARCHPATH environment variable which is a colon-delimited list of directories such as[code:1:83f2e70f1b] setenv XFILESEARCHPATH ":/usr/lib/X11/%T/%N%S:/usr/x11R6/lib/X11/%T/%N%S:/usr
/local/lib/%T/%N%S:"[/code:1:83f2e70f1b]Things like the '%T' have special meaning so only change the path at the beginning. If you don't have this variable defined in your environment, see if it was set earlier when things worked. It may be for instance that you define this in your .login file but xgterm isn't running as a 'login shell' and so only your .cshrc file is read. You can use the "-ls" argument to xgterm to force a login shell. In any case, you can use the 'xlsfonts' command to list what fonts the system thinks are available, e.g.[code:1:83f2e70f1b]% xlsfonts | grep 9x15[/code:1:83f2e70f1b]
-Mike

 
Profile Email
 Quote
Gaba_p
 08/13/2009 07:49PM  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
Hi,there's no /usr/X11R6/ directory in my system, but there's a /var/cache/man/X11R6/ dir with 10 'cat*' dirs inside (where '*' stands for numbers from 1 to 9 and an 'n' letter)The 'xslfonts' command lists:6x13
cursor
fixed
lucidasans-10
lucidasans-12
lucidasans-14
lucidasans-18
lucidasans-24
lucidasans-8
lucidasans-bold-10
lucidasans-bold-12
lucidasans-bold-14
lucidasans-bold-18
lucidasans-bold-24
lucidasans-bold-8
lucidasans-bolditalic-10
lucidasans-bolditalic-12
lucidasans-bolditalic-14
lucidasans-bolditalic-18
lucidasans-bolditalic-24
lucidasans-bolditalic-8
lucidasans-italic-10
lucidasans-italic-12
lucidasans-italic-14
lucidasans-italic-18
lucidasans-italic-24
lucidasans-italic-8
lucidasanstypewriter-10
lucidasanstypewriter-12
lucidasanstypewriter-14
lucidasanstypewriter-18
lucidasanstypewriter-24
lucidasanstypewriter-8
lucidasanstypewriter-bold-10
lucidasanstypewriter-bold-12
lucidasanstypewriter-bold-14
lucidasanstypewriter-bold-18
lucidasanstypewriter-bold-24
lucidasanstypewriter-bold-8and a bunch of lines like:-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-iso8859-5
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-iso8859-9
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-koi8-e
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-koi8-r
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-koi8-ru
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-koi8-u
-urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-koi8-uni
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso10646-1
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-1
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-15
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-2
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-3
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-5
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-iso8859-9
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-koi8-e
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-koi8-r
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-koi8-ru
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-koi8-u
-urw-urw palladio l-medium-r-normal--0-0-0-0-p-0-koi8-uni
-xfree86-cursor-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
etc...For now I'm using lucidasanstypewriter-12 font, but I would really like to know how to set the old 9x15 font back.Thanks!

 
Profile Email Website
 Quote
Gaba_p
 08/13/2009 07:49PM  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
Well, it was simpler than I thought. I installed the 'misc bitmap fonts for the X Window System' and the missing fonts were back.Cheers!
Gabriel

 
Profile Email Website
 Quote
rathna
 08/13/2009 07:49PM  
+----
Newbie

Status: offline


Registered: 04/10/2011
Posts: 1
I faced a similar problem. Installing 'misc bitmap fonts for the X Window System' helped solve the problem.Thank you for the post!

 
Profile Email
 Quote
   
Content generated in: 0.15 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login