By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2777 - Konsole doesn't show Unicode Braille
Summary: Konsole doesn't show Unicode Braille
Status: RESOLVED NOTOURPROBLEM
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.x [Trinity]
Hardware: i386 Debian Wheezy
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2017-05-29 10:23 CDT by Davide
Modified: 2018-08-09 20:40 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
this is how Braille fonts are rendered (26.88 KB, image/jpeg)
2017-05-29 10:23 CDT, Davide
Details
Konsole session configuration (78.66 KB, image/jpeg)
2017-05-29 10:25 CDT, Davide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide 2017-05-29 10:23:46 CDT
Created attachment 2767 [details]
this is how Braille fonts are rendered

Konsole doesn't properly render unicode Braille fonts. All Braille fonts are displayed as squares. Braille is correctly displayed by Xterm terminal on the same computer.

To reproduce:
$ printf '\u2801'  # print a Braille character to terminal

Configuration:

$ konsole --version
  Qt: 3.5.0
  TDE: R14.0.5 [DEVELOPMENT]
  Konsole: 1.6.6

Konsole font: Liberation Mono.

Attached screenshots further describe the configuration of Konsole.
Comment 1 Davide 2017-05-29 10:25:30 CDT
Created attachment 2768 [details]
Konsole session configuration
Comment 2 Michele Calgaro 2018-08-05 03:47:16 CDT
Seems to work fine here... Do you have any more info?
Comment 3 Ray Vine 2018-08-07 08:05:43 CDT
This probably isn't a TDE bug.

The Liberation font doesn't include glyphs for the braille characters and so the default will be to show the absence of a glyph, usually a rectangle.

Font configuration is handled by fontconfig and the default font directory which konsole uses is /usr/share/fonts/TTF - other applications might use their own font directories.

If there is another font in that directory which is associated through fontconfig with Liberation, and which has the required glyph, that glyph will be substituted for the absent one in the Liberation font.

As you're seeing the glyph in an xterm I would think that it's either using its own font directory which contains a font with braille glyphs or it's not using a Liberation font.

So it looks as though your /usr/share/fonts/TTF directory doesn't contain any fonts with braille glyphs.
Check with:

$ grep uni2875 /usr/share/fonts/TTF/*

I'm guessing you'll get no output - I get a bunch of DejaVu fonts, although surprisingly, the DejaVuSansMono.ttf font doesn't have the braille glyphs.

So with printf '\u2875\n' I see the braille character, but if I remove the non-Liberation fonts, and in a new instance of konsole, I see the rectangle.
Comment 4 Michele Calgaro 2018-08-07 08:29:15 CDT
I tried with liberation mono selected as font in Konsole and still see the braille character.
I agree that this is probably a font related thing, not a TDE bug.
The question is: should we keep this bug open and if so, what to look at? Or close it?
Comment 5 Ray Vine 2018-08-08 09:20:46 CDT
If you're seeing the braille character when using Liberation mono, then a substitution is being made.

Do
$ grep uni2875 /usr/share/fonts/TTF/*

If there aren't any files listed, then konsole must be using a different fonts directory**.


If there are files listed, move them to a temporary location.
Then start a new instance, not a new session, of konsole, and the character shown should be a rectangle.

If it's not, then konsole must be using a different fonts directory**.


** See <!-- Font directory list --> in /etc/fonts/fonts.conf
If you're still seeing the braille character then konsole must be using a substitution from a font in one of those directories.
Comment 6 Michele Calgaro 2018-08-08 09:56:04 CDT
Thanks Ray, 
very informative. No, there are fonts listed as output of the grep command.
When/if I get to look into this bug, I will test a clean VM (my systems has a lot of stuff installed) and see what happens there. Unless you get around and fix it before that ;-)
Comment 7 Ray Vine 2018-08-09 14:25:55 CDT
This is not a bug ..

> I tried with liberation mono selected as font in Konsole and still see the braille character
  This is expected behaviour - Liberation font in konsole displays braille characters ..

> there are fonts listed as output of the grep command
  .. when it can access a font which includes braille glyphs.

So there is no problem with TDE/konsole.

If Liberation is to be used as the konsole font, the fix is to also install a font containing braille glyphs where konsole can access it.
For example, install DejaVuSans.ttf in /usr/share/fonts/TTF/.

This is a system/distribution issue, not TDE.

> should we keep this bug open ... Or close it?
  Close it
Comment 8 Michele Calgaro 2018-08-09 20:40:38 CDT
Ok, I am happy with your point of view and agree that this is not a Konsole issue.