Some line drawing characters & other symbols appear as diamonds in terminals (ttys)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Some line drawing characters & other symbols appear as diamonds in terminals (ttys)
Hello again fellow LQ goers,
On my terminal only system ( no Xorg or guis ) I have a font rendering issue. In place of some symbols ( eg double-lines and some other miscellaneous line-drawing shapes) are generic diamonds.
Attached is a fbgrab ( png format ) of elinks showing the problem. I have now configured elinks to only use single lines drawing characters ( which work fine ) for now as a work around.
Here is my /etc/default/console-setup
Code:
# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT="no"
# Setup these consoles. Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"
# Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"
# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese. Read README.fonts for explanation.
CODESET="Uni2"
# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16) and Fixed (sizes 13, 14, 15, 16 and 18). Only when
# CODESET=Ethiopian: Goha (sizes 12, 14 and 16) and
# GohaClassic (sizes 12, 14 and 16).
# Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# set up the keyboard but to leave the console font unchanged.
FONTFACE="TerminusBold"
FONTSIZE="16"
# You can also directly specify nonstandard font or console map to load.
# Use space as separator if you want to load more than one font.
# You can use FONT_MAP in order to specify the Unicode map of the font
# in case the font doesn't have it embedded.
# FONT='lat9w-08.psf.gz /usr/local/share/braillefonts/brl-08.psf'
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm
if [ -f /etc/default/keyboard ]; then
. /etc/default/keyboard
fi
And here the the related documentation ( /usr/share/doc/console-setup/README.fonts.gz )
Code:
=========
CODE SETS
=========
The console fonts are named after the scheme CODESET-FONTFACE.psf,
CODESET may be Arabic, Armenian, CyrAsia, CyrKoi, CyrSlav, Ethiopian,
Georgian, Greek, Hebrew, Lao, Lat15, Lat2, Lat38, Lat7, Thai, Uni1,
Uni2, Uni3 and Vietnamese. The codesets determine which symbols are
supported by the font.
Please notice that the existence of a font for a particular code set
means that the font supports only most of it. Unfortunately some of
of the fonts support the code sets only partialy. Please check the
support for your language.
If you need multilingual environment, take a look at the Uni1, Uni2
and Uni3 code sets.
When fonts for code sets with 512 gliphs are used in text video mode
(not framebuffer) only 8 foreground colours can be displayed.
##### OMITTED LONG FOREIGN LANGUAGES SECTION - irrelevant ####
Uni1 (512 gliphs)
Supports most of the Latin languages, the Slavic Cyrillic
languages, Hebrew and barely Arabic.
Completely supported by the following fontfaces: Fixed15, Fixed16,
VGA*.
Uni2 (512 gliphs)
Supports most of the Latin languages, the Slavic Cyrillic languages
and Greek.
Completely supported by the following fontfaces: Fixed*, VGA16,
VGA32x16.
Uni3 (512 gliphs)
Supports most of the Latin and Cyrillic languages.
Completely supported by the following fontfaces: Fixed*.
###### Another foreign lang omitted #####
==========
FONT FACES
==========
The following font faces are provided both for text video modes and
for framebuffer:
Fixed13, Fixed14, Fixed15, Fixed16, Fixed18
Goha12, Goha14, Goha16
GohaClassic12, GohaClassic14, GohaClassic16
Terminus14, Terminus16
TerminusBold14, TerminusBold16
VGA8, VGA14, VGA16
The following font faces are provided for text video modes only:
TerminusBoldVGA14, TerminusBoldVGA16
The following font faces are provided for framebuffer video modes
only:
Terminus12x6, Terminus20x10, Terminus24x12,
Terminus28x14, Terminus32x16
TerminusBold12x6, TerminusBold20x10, TerminusBold24x12,
TerminusBold28x14, TerminusBold32x16
VGA28x16, VGA32x16
The numbers in the FONTFACE show the size of the font matrix. For
example Lat2-Terminus20x10.psf is a font for codeset Lat2 with size of
the font matrix 10x20 (i.e. 10 columns and 20 rows). If the number of
columns is 8 then only the number of rows is specified. For example
the font matrix of Armenian-Fixed15.psf has size 8x15.
In text video mode or if you use the RadeonFB kernel module only fonts
whose font matrix has 8 columns can be used (that is the size should
be a simple NUMBER rather than a NUMBERxNUMBER combination). The
other fonts can be used only with framebuffer video modes and with the
package 'kbd'. The console package 'console-tools' can not be used
with such fonts.
=================
THE TERMINUS FONT
=================
The aim of the Terminus font is to reduce the eyes-fatigue when one
has to read a lot. Currently this font supports only the Latin, the
Cyrillic and the Greek scripts (the Lat15, Lat2, Lat7, CyrAsia,
CyrKoi, CyrSlav, Greek, Uni2 and Uni3 codesets).
The fonts with font face TerminusBold and size 14 or 16 are optimized
for 8 pixels width glyph matrix (in most cases this means framebuffer).
The fonts with font face TerminusBoldVGA and size 14 or 16 are
optimized for 9 pixels width glyph matrix and can not be used with
framebuffer video modes.
The fonts with font face Terminus and size 14 or 16 can be used both
with 8 and 9 pixels width glyph matrix.
In the regular text video modes the width of the glyph matrix is 9
pixels. If you use the package svgatextmode then the width is 8 or 9
pixels and you probably know it.
The Terminus font in this version of console-setup is version 4.26.
well, since you've not had any relevant replies I thought I'd reply. I have a similar setup and get the same results with elinks. However ncurses programs like mutt work fine. Can you try running an ncurses program like mutt and see what happens?
Go into Setup->Terminal options and set VT100 frames
________________________
Gerrard
This workaround makes Elinks use the single-line characters which render fine. I mentioned this in my topic post.
Quote:
Originally Posted by evo2
Hi,
well, since you've not had any relevant replies I thought I'd reply. I have a similar setup and get the same results with elinks. However ncurses programs like mutt work fine. Can you try running an ncurses program like mutt and see what happens?
Cheers,
Evo2.
Mutt does not use any non ANSI characters ( and so renders fine ). I'm looking for some more ncurses utilising programs that use some extended symbols ( such as double-lines drawing characters ) now to test.
And for clarification, so far extended characters such as these work:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.