Page 1 of 1

symbols (fonts ?) not display correctly on gtk-pipe-viewer [SOLVED]

Posted: Tue Nov 16, 2021 4:12 pm
by fredx181

Anyone can give a hint ?
I recently discovered 'pipe-viewer' https://github.com/trizen/pipe-viewer, a continuation of (gtk-)youtube-viewer, I like it because it's not dependent on youtube-dl and much faster starting video play, but..
I doesn't display symbols/fonts well.

Display on gtk-youtube-viewer (is ok):

2021-11-16_16-55-50.jpg
2021-11-16_16-55-50.jpg (31.13 KiB) Viewed 943 times

Display on gtk-pipe-viewer (not ok):

2021-11-16_16-55-27.jpg
2021-11-16_16-55-27.jpg (31.85 KiB) Viewed 943 times

It's a perl/gtk3 application, I wondered if it could possibly be fixed by installing extra fonts, tried that but didn't succeed.


Re: symbols (fonts ?) not display correctly on gtk-pipe-viewer

Posted: Tue Nov 16, 2021 4:33 pm
by fredx181

I see now in the gtk-pipe-viewer script (opened with leafpad) that it's hard coded, I think (or not dispay correctly because of my system configuration perhaps):

2021-11-16_17-30-23.jpg
2021-11-16_17-30-23.jpg (16.52 KiB) Viewed 934 times

Anything I can do to change that ?


Re: symbols (fonts ?) not display correctly on gtk-pipe-viewer

Posted: Tue Nov 16, 2021 5:02 pm
by JakeSFR

I just checked the latest versions of both and they use exactly the same symbols in 'my %symbols' array.
Btw, I can see them thanks to https://unifoundry.com/unifont/.

Your version of gtk-youtube-viewer is most likely an older one, before this commit: https://github.com/trizen/youtube-viewe ... 4ef7769cc0

Greetings!


Re: symbols (fonts ?) not display correctly on gtk-pipe-viewer [SOLVED]

Posted: Tue Nov 16, 2021 5:03 pm
by fredx181

Solved, had to do with emoji display, installed "fonts-symbola" :

This package includes the Symbola font, which contains special symbols and
emoji characters which are encoded in the Unicode Standard 9.0

Looks good now;

2021-11-16_18-00-54.jpg
2021-11-16_18-00-54.jpg (22.71 KiB) Viewed 924 times

EDIT; Display in leafpad also good now:

2021-11-16_18-46-44.jpg
2021-11-16_18-46-44.jpg (15.41 KiB) Viewed 912 times

Re: symbols (fonts ?) not display correctly on gtk-pipe-viewer [SOLVED]

Posted: Tue Nov 16, 2021 5:12 pm
by fredx181
JakeSFR wrote: Tue Nov 16, 2021 5:02 pm

I just checked the latest versions of both and they use exactly the same symbols in 'my %symbols' array.
Btw, I can see them thanks to https://unifoundry.com/unifont/.

Your version of gtk-youtube-viewer is most likely an older one, before this commit: https://github.com/trizen/youtube-viewe ... 4ef7769cc0

Greetings!

Thanks Jake, yes my gtk-youtube-viewer is older, as I wrote above for pipe-viewer, fixed now with installing fonts-symbola, will try also with installing unifont later.


Re: symbols (fonts ?) not display correctly on gtk-pipe-viewer [SOLVED]

Posted: Tue Nov 16, 2021 8:59 pm
by fredx181

Works ok too with unifont installed, but on Debian it's a much bigger package (including dependencies) than fonts-symbola.