zzhang2006
asked on
Add bitmap fonts for using with Fedora and xterm to Xming
I believe I have Fedora 19 and I need to be able to change xterm font, color, and size on the Putty command line like this:
bash-4.2$ xterm -geometry 132x80 -fn lucidasanstypewriter-8 -rv &
[2] 9516
-bash-4.2$ xterm: cannot load font 'lucidasanstypewriter-8'
xterm: cannot load font 'lucidasanstypewriter-8'
But, see it can not find the font "lucidasastypewirter", while xterm pop up with some
default font. I looked online seemed to know what should be done, from here
http://www.xfree86.org/current/fonts2.html for example
, but where to get the bitmap font files, such as courier12.pdf? When I enter xlsfonts
I get:
-bash-4.2$ xlsfonts
-misc-fixed-medium-r-semic ondensed-- 0-0-75-75- c-0-iso885 9-1
-misc-fixed-medium-r-semic ondensed-- 13-100-100 -100-c-60- iso8859-1
-misc-fixed-medium-r-semic ondensed-- 13-120-75- 75-c-60-is o8859-1
6x13
cursor
fixed
And choosing one of above seemed no effect in the xterm rendered. I don't really have to have a particular font, however I need have whole bunch of selection like I used to be able to do with other version of Linux package. Am I missing anything? Please offer suggestions; Giving full commands solutions is high appreciated. Thanks in advance.
Ze
bash-4.2$ xterm -geometry 132x80 -fn lucidasanstypewriter-8 -rv &
[2] 9516
-bash-4.2$ xterm: cannot load font 'lucidasanstypewriter-8'
xterm: cannot load font 'lucidasanstypewriter-8'
But, see it can not find the font "lucidasastypewirter", while xterm pop up with some
default font. I looked online seemed to know what should be done, from here
http://www.xfree86.org/current/fonts2.html for example
, but where to get the bitmap font files, such as courier12.pdf? When I enter xlsfonts
I get:
-bash-4.2$ xlsfonts
-misc-fixed-medium-r-semic
-misc-fixed-medium-r-semic
-misc-fixed-medium-r-semic
6x13
cursor
fixed
And choosing one of above seemed no effect in the xterm rendered. I don't really have to have a particular font, however I need have whole bunch of selection like I used to be able to do with other version of Linux package. Am I missing anything? Please offer suggestions; Giving full commands solutions is high appreciated. Thanks in advance.
Ze
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sage, this works! I just used the above, without really understand how the font system on Fedora is structured. Well, this is all I need for now. I also notice something, the foreground (-fg) and background (-bg) color options actually reversed,
For example
-bash-4.2$ xterm -geometry 132x80 -fa "LucidaTypewriter" -rv -bg green -fg black &
With the above command you will see green text on a black background, is this an error on Fefora?
For example
-bash-4.2$ xterm -geometry 132x80 -fa "LucidaTypewriter" -rv -bg green -fg black &
With the above command you will see green text on a black background, is this an error on Fefora?
ASKER
But the fc-list | grep -i Lucida yield nothing, although I did seem lots of fonts print out when "fc-list" was entered alone.
And what is more, I found that the "-fa" option has no effect what's ever, this
xterm -geometry 132x80 -fa "AnyJunk" -rv -bg green -fg black &
will pop up the same xterm with a default font, which has minimum quality.
Thanks
And what is more, I found that the "-fa" option has no effect what's ever, this
xterm -geometry 132x80 -fa "AnyJunk" -rv -bg green -fg black &
will pop up the same xterm with a default font, which has minimum quality.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
sure!
Open in new window
On my Fedora system, this font is part of the Sun JDK in /usr/java/jdk1.x.x_xx/jre/