Active Topics

 


Reply
Thread Tools
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#1
Hey all.

So yeah, I'm using TerminusBold.ttf for a font in Xterm.

How can I see what each character code number (0-255) represents?

Hopefully this makes sense to someone out there.

Thanks!
 
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#2
In windows just do run -> charmap. For linux there is the Fontmatrix font managing app.
 

The Following User Says Thank You to iamthewalrus For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#3
I made a text file with all (non-control) 8-bit chars when I was fiddling with console fonts on my desktop, and just cat that to see them... I'd attach the file, but it's on another machine, it's trivial to make yourself, and the Walrus just suggested something easier.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
On the desktop you just use xfd -fn "fontname", but at least for my OS2007 installation there doesn't seem to be an xfd readily available.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
I've built and packaged xfd and xlsfonts (the latter is for showing the xserver's font list so that you know what to pass to xfd in the first place..), and it works (on my OS2007 setup), however I'm not sure what kind of fonts osso-xterm is actually using.. checking 'Settings' in xterm tells me it's currently using a bitstream Vera font, but xlsfonts doesn't show that one to be part of the xserver's idea of fonts. So I'm not sure how useful xfd would be for anyone.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#6
Thanks Walrus, that certainly did the trick.

One last question though...

How do I perform this in Xterm?

# Start an xterm in UTF-8; the easy way is to run the uxterm command.
# Run luit -g2 'CP 437' in that xterm to provide translation from code page 437 to UTF-8.
Preferably I would like a response that I simply can copy and paste since I'm not all too friendly with commands.

Thanks again!


Edit: Even better, is there any possible way to use a .fon file in Xterm? That would really be perfect for what I'm hoping to achieve.

Last edited by Addison; 2008-07-22 at 07:46.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:13.