You are not logged in.

#1 2021-01-19 21:03:40

domx93
Member
Registered: 2020-11-30
Posts: 21

[SOLVED] Some programs don't show some fonts

Hello, I have a weird problem: some programs (firefox and whatsdesk, since I've noticed), don't show the text written in a particular font, and what I see is the following:
photo-2021-01-19-22-01-44.jpg
what do you think can be? Thanks!

Last edited by domx93 (2021-02-14 13:52:03)

Offline

#2 2021-01-19 21:29:45

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 74

Re: [SOLVED] Some programs don't show some fonts

I would guess that you don't have a suitable font installed.

Offline

#3 2021-01-19 21:51:46

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

tucuxi wrote:

I would guess that you don't have a suitable font installed.

hi, is there a way to understand what font I need? This is whatskesk when I try to save a file, quite annoying
https://i.ibb.co/B2xsMxR/photo-2021-01-19-22-50-43.jpg

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2021-01-20 00:13:30)

Offline

#4 2021-01-19 22:46:43

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

Newer pango versions don't support pcf bitmap fonts.
What is "a particular font"?

Offline

#5 2021-01-19 23:56:08

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

Newer pango versions don't support pcf bitmap fonts.
What is "a particular font"?

sorry, bad translation from my language big_smile "a certain font"
is there a way to solve the problem?

Offline

#6 2021-01-20 00:31:34

progandy
Member
Registered: 2012-05-17
Posts: 4,122

Re: [SOLVED] Some programs don't show some fonts

FF45 and so on are "full width latin" characters typically available in CJK fonts. Possibly try wqy-microhei, that is small and should cover the most important symbols.

https://wiki.archlinux.org/index.php/Fo … Vietnamese


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#7 2021-01-20 07:30:09

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

domx93 wrote:

sorry, bad translation from my language big_smile "a certain font"

The translation is fine, but I meant "which font do you use that renders this", many CJKs are/used to be bitmap fonts (and your screenshot looks like it's a bitmap font)
If you don't know, try

FC_DEBUG=4 pango-view --font="sans" -t "e"  | grep family:

and post the output.

Offline

#8 2021-01-20 22:24:11

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

progandy wrote:

FF45 and so on are "full width latin" characters typically available in CJK fonts. Possibly try wqy-microhei, that is small and should cover the most important symbols.

https://wiki.archlinux.org/index.php/Fo … Vietnamese

sorry, I don't understand. If the problem is pango how installing new fonts should help?



seth wrote:
domx93 wrote:

sorry, bad translation from my language big_smile "a certain font"

The translation is fine, but I meant "which font do you use that renders this", many CJKs are/used to be bitmap fonts (and your screenshot looks like it's a bitmap font)
If you don't know, try

FC_DEBUG=4 pango-view --font="sans" -t "e"  | grep family:

and post the output.

I have no idea, I found these fonts surfing in the web or in the whatsapp client application. The outuput of that command is super huge, I copied it here.

Last edited by domx93 (2021-01-20 22:24:36)

Offline

#9 2021-01-21 04:39:11

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

Please try

FC_DEBUG=4 pango-view --font="sans" -t "e"  | grep family: | curl -F 'f:1=<-' ix.io

(the online doc thing there shredded the formatting, notably linebreaks)

Edit, but it seems to end in Nimbus Sans, try to install the DejaVu fonts, https://archlinux.org/packages/extra/any/ttf-dejavu/

Last edited by seth (2021-01-21 04:40:34)

Offline

#10 2021-01-29 15:59:30

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

Please try

FC_DEBUG=4 pango-view --font="sans" -t "e"  | grep family: | curl -F 'f:1=<-' ix.io

(the online doc thing there shredded the formatting, notably linebreaks)

Edit, but it seems to end in Nimbus Sans, try to install the DejaVu fonts, https://archlinux.org/packages/extra/any/ttf-dejavu/

Hi, sorry for the delay. That command doesn't work and opens a little window with the undreadable character:

(base) [domenico@domenico-archthinkpad ~]$ FC_DEBUG=4 pango-view --font="sans" -t "e"  | grep family: | curl -F 'f:1=<-' ix.io
Fontconfig error: Cannot load default config file

I installed that package too, but it didn't solve.

Offline

#11 2021-01-29 16:03:13

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

That command doesn't work and opens a little window with the undreadable character:

You're supposed to post the link you get from xi.io.

Offline

#12 2021-02-04 14:20:58

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

That command doesn't work and opens a little window with the undreadable character:

You're supposed to post the link you get from xi.io.

sorry, I understood just now!
http://ix.io/2Okp

Offline

#13 2021-02-04 15:13:06

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

Edit, but it seems to end in Nimbus Sans, try to install the DejaVu fonts, https://archlinux.org/packages/extra/any/ttf-dejavu/

The recent output doesn't suggest it's installed.
If it is, try to (temporarily) remove the gsfonts package.

Offline

#14 2021-02-04 17:54:21

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:
seth wrote:

Edit, but it seems to end in Nimbus Sans, try to install the DejaVu fonts, https://archlinux.org/packages/extra/any/ttf-dejavu/

The recent output doesn't suggest it's installed.
If it is, try to (temporarily) remove the gsfonts package.

Sorry I made confusion with the laptops, now I installed even in this one (I have this problem in both). Updated output: http://ix.io/2OlI

Anyway, removing gsfonts didn't produce any difference...

Last edited by domx93 (2021-02-04 17:57:36)

Offline

#15 2021-02-04 20:39:01

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

That link seems to describe some key bindings?

Offline

#16 2021-02-07 22:13:34

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

That link seems to describe some key bindings?

Uhm I don't know, why?

Offline

#17 2021-02-12 16:34:35

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

No idea, it's now the proper content.
The glyph is ulimately resolved from DejaVu Sans (as expected) but from a local test, even DejaVu doesn't have it.
I get it out of Droid Sans, https://archlinux.org/packages/community/any/ttf-droid/

Offline

#18 2021-02-13 13:31:00

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

No idea, it's now the proper content.
The glyph is ulimately resolved from DejaVu Sans (as expected) but from a local test, even DejaVu doesn't have it.
I get it out of Droid Sans, https://archlinux.org/packages/community/any/ttf-droid/

I think this is the problem:

seth wrote:

Newer pango versions don't support pcf bitmap fonts.
What is "a particular font"?

but how other linux so can do that? I don't understand...

Offline

#19 2021-02-13 14:32:29

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

What is "other linux" and does it maybe ship Droid Sans by default or maybe some cjk's?
https://archlinux.org/packages/?q=cjk

It's just an exotic glyph that's not provided by many fonts and you don't have one available and arch doesn't shovel random stuff on your disk (i3 users often forget to install *any* font and wonder why their desktop doesn't render any text at all)

Offline

#20 2021-02-13 21:36:42

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

What is "other linux" and does it maybe ship Droid Sans by default or maybe some cjk's?
https://archlinux.org/packages/?q=cjk

It's just an exotic glyph that's not provided by many fonts and you don't have one available and arch doesn't shovel random stuff on your disk (i3 users often forget to install *any* font and wonder why their desktop doesn't render any text at all)

uhm I don't understand. pango doesn't support bitmaps font but if I install it then it does?

Offline

#21 2021-02-13 21:40:02

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

Droid is not a bitmap font.

Offline

#22 2021-02-14 13:29:50

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

seth wrote:

Droid is not a bitmap font.

ah ok, so do you think that the problem was not the fact that those fonts were bitmap? Anyway I solved some problems, now I can see stuff that I didn't see in firefox (great, thanks so much!) but in whatsdesk (the whtasapp desktop app) I still see this when I want to save a file:
https://i.ibb.co/1f0VTHB/immagine.png

Last edited by domx93 (2021-02-14 19:50:55)

Offline

#23 2021-02-14 13:51:41

domx93
Member
Registered: 2020-11-30
Posts: 21

Re: [SOLVED] Some programs don't show some fonts

Final update: I found someone saying on internet that the problem was snap that couldn't access the system fonts, so I reinstalled whatsdesk by aur and now the problem is solved! Thank you so much! big_smile

Offline

#24 2021-02-14 14:05:35

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [SOLVED] Some programs don't show some fonts

You didn't mention snap before… https://wiki.archlinux.org/index.php/Sn … unreadable

Please remove the oversized image.

Offline

Board footer

Powered by FluxBB