LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-26-2010, 06:52 AM   #1
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99
Blog Entries: 39

Rep: Reputation: 19
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.
Can someone point out what I have done wrong?

Thanks in advance to those who can help.
Attached Thumbnails
Click image for larger version

Name:	elinks_diamonds.png
Views:	45
Size:	3.5 KB
ID:	4684  
 
Old 09-27-2010, 08:06 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Go into Setup->Terminal options and set VT100 frames

________________________
Gerrard
 
Old 09-27-2010, 08:04 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
1 members found this post helpful.
Old 09-27-2010, 09:05 PM   #4
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
Quote:
Originally Posted by gdejonge View Post
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 View Post
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:
Code:
│┌┐└┘├┤┬┴┼ ▒▓░ ▕ ▔ ▁ ▏
While ones such as these do not:
Code:
═║╔╗╚╝╠╣╦╩╬
 
Old 09-27-2010, 09:53 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
And for clarification, so far extended characters such as these work:
Code:
│┌┐└┘├┤┬┴┼ ▒▓░ ▕ ▔ ▁ ▏
Only a subset of these work for me:
Code:
│┌┐└┘├┤┬┴┼ ▒░
Quote:
While ones such as these do not:
Code:
═║╔╗╚╝╠╣╦╩╬
The last of these works but the others do not.

I suspect you need to play around and try some different codesets and perhaps fontfaces (I'm using "Lat15" and fontface "Fixed").

Sorry I can't be of more help.

Evo2.
 
1 members found this post helpful.
Old 09-27-2010, 11:49 PM   #6
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
Quote:
Originally Posted by evo2 View Post
Hi,


Only a subset of these work for me:
Code:
│┌┐└┘├┤┬┴┼ ▒░
The last of these works but the others do not.

I suspect you need to play around and try some different codesets and perhaps fontfaces (I'm using "Lat15" and fontface "Fixed").

Sorry I can't be of more help.

Evo2.
Thanks Evo2. I'll look into it
 
Old 09-28-2010, 12:38 AM   #7
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
Terminus, VGA and Fixed do not support the symbols still in any of the Lat(in) and Uni(code) codesets.

Something else must be wrong.
 
Old 09-30-2010, 08:02 PM   #8
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
*bump*

Is there anything else I can try? I'm stumped.

Thankyou if you can help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Line-drawing characters not longer drawn in console after kernel upgrade - why arielCo Linux - Software 2 07-05-2009 11:15 PM
Optimality of Bresenham's line drawing algorithm sonajiso Programming 1 03-19-2008 03:01 PM
SuSE 10: No line drawing in console fonts? GGim LinuxQuestions.org Member Intro 1 04-05-2006 04:30 PM
LaTeX symbols & characters unihiekka Linux - Software 2 09-25-2005 01:12 PM
Drawing a line chr15t0 Linux - General 1 03-27-2003 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration