au-phiware / fbterm

Automatically exported from code.google.com/p/fbterm
GNU General Public License v2.0
1 stars 0 forks source link

Lines not drawn with Terminus font #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Set fbterm to use the Terminus font (and remove all other fonts if installed)
2.Start fbterm and use any application that draws lines, e.g. elinks

What is the expected output? What do you see instead?
Expected: lines drawn in menus, dialog boxes, etc.
See: Lines not drawn.

What version of the product are you using? On what operating system?
fbterm 1.7, compiled from Arch User Repository(AUR), on Arch Linux.
Terminus font installed from Arch repos.

Please provide any additional information below.
If other fonts are installed, e.g. WenQuanYi Bitmap Song, lines are drawn in 
that font instead, which are not aligned properly and looks ugly.

Original issue reported on code.google.com by zhaga...@gmail.com on 7 Oct 2010 at 1:39

GoogleCodeExporter commented 9 years ago
Terminus font doesn't contain the glyphs for h/v line.

Original comment by zgchan...@gmail.com on 7 Oct 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Um, by typing

setfont ter-m16n
showconsolefont

there are clearly glyphs for horizontal/vertical lines in there.

Original comment by zhaga...@gmail.com on 7 Oct 2010 at 5:49

GoogleCodeExporter commented 9 years ago
Do you use the same console Terminus psf font in fbterm? Terminus ttf font 
doesn't contain h/v line glyphs.

fbterm depends on freetype2 lib for font selection and text rendering.
I won't treat psf font as a special case and add specific codes in fbterm.

Original comment by zgchan...@gmail.com on 7 Oct 2010 at 6:24

GoogleCodeExporter commented 9 years ago
That is very interesting, because as far as I can see the Terminus font package 
in Arch installs only pcf fonts, not ttf ones. See
http://www.archlinux.org/packages/community/i686/terminus-font/
and click "View the file list for terminus-font" at bottom.
Anyways this may a freetype2 issue as you suggested, since it does load all the 
character glyphs correctly but not the glyphs for lines.

Original comment by zhaga...@gmail.com on 7 Oct 2010 at 6:34

GoogleCodeExporter commented 9 years ago
I tested the terminus pcf font on ubuntun, it contains h/v line glyphs.
but the map from glyph index to unicode value is NOT correct.

freetype2 recognizes h/v line glyphs of terminus pcf font  as unicode 
0x0012/0x0019, 
the correct values should be 0x2500/0x2502.

Original comment by zgchan...@gmail.com on 7 Oct 2010 at 1:36