maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   How do view all of the character codes for a font? (https://talk.maemo.org/showthread.php?t=22131)

Addison 2008-07-21 08:34

How do view all of the character codes for a font?
 
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!

iamthewalrus 2008-07-21 10:56

Re: How do view all of the character codes for a font?
 
In windows just do run -> charmap. For linux there is the Fontmatrix font managing app.

Benson 2008-07-21 14:34

Re: How do view all of the character codes for a font?
 
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. ;)

TA-t3 2008-07-21 14:44

Re: How do view all of the character codes for a font?
 
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.

TA-t3 2008-07-21 16:02

Re: How do view all of the character codes for a font?
 
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.

Addison 2008-07-22 05:59

Re: How do view all of the character codes for a font?
 
Thanks Walrus, that certainly did the trick.

One last question though...

How do I perform this in Xterm?

Quote:

# 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.


All times are GMT. The time now is 05:04.

vBulletin® Version 3.8.8