Solved

Add bitmap fonts for using with Fedora and xterm to Xming

Posted on 2014-04-07
7
934 Views
Last Modified: 2014-04-30
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-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-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
0
Comment
Question by:zzhang2006
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:xterm
ID: 40005111
Please try this command, and let me know if the output on your system looks different to mine:

[xterm@foo ~]$ [b]fc-list | grep -i lucida[/b]
LucidaTypewriter:style=Sans Bold
LucidaTypewriter:style=Sans

Open in new window


On my Fedora system, this font is part of the Sun JDK in /usr/java/jdk1.x.x_xx/jre/lib/fonts/ directory.
0
 
LVL 19

Assisted Solution

by:xterm
xterm earned 500 total points
ID: 40005132
Oh, once you have fc-list showing that you have that font ready for use, launch it with this command:

xterm -geometry 132x80 -fa "LucidaTypewriter" -rv
0
 
LVL 1

Author Comment

by:zzhang2006
ID: 40032303
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?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 1

Author Comment

by:zzhang2006
ID: 40032354
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
0
 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
ID: 40032373
Yes, if it doesn't recognize the font supplied, it will launch the default one.  And that foreground/background reversal stuff I don't think is limited to Fedora - I've seen it act weird on multiple distributions and indeed using your exact command above on my Ubuntu box, I get the green text and black background.
0
 
LVL 1

Author Closing Comment

by:zzhang2006
ID: 40033485
Thanks
0
 
LVL 19

Expert Comment

by:xterm
ID: 40033572
sure!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 95
Linux Copy Command - All Files inc Directory 1 55
awk variable in printf 1 33
How to change the nameserver on Ubuntu Server 6 48
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question