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

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
User avatar
fredx181
Posts: 3096
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1321 times
Contact:

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

Post 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 947 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 947 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.

User avatar
fredx181
Posts: 3096
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1321 times
Contact:

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

Post 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 938 times

Anything I can do to change that ?

User avatar
JakeSFR
Posts: 277
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

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

Post 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!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
fredx181
Posts: 3096
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1321 times
Contact:

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

Post 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 928 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 916 times
User avatar
fredx181
Posts: 3096
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1321 times
Contact:

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

Post 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.

User avatar
fredx181
Posts: 3096
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1321 times
Contact:

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

Post by fredx181 »

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

Post Reply

Return to “Programming”