Export to GitHub

fbterm - issue #42

Lines not drawn with Terminus font


Posted on Oct 7, 2010 by Happy Horse

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.

Comment #1

Posted on Oct 7, 2010 by Happy Horse

Terminus font doesn't contain the glyphs for h/v line.

Comment #2

Posted on Oct 7, 2010 by Happy Horse

Um, by typing

setfont ter-m16n showconsolefont

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

Comment #3

Posted on Oct 7, 2010 by Happy Horse

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.

Comment #4

Posted on Oct 7, 2010 by Happy Horse

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.

Comment #5

Posted on Oct 7, 2010 by Happy Horse

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.

Status: Invalid

Labels:
Type-Defect Priority-Medium