You are not logged in.

#1 2021-10-12 15:55:59

chibo
Member
Registered: 2018-04-27
Posts: 87

How does Linux display Unicode characters?

I have a simple Python PIL script that's render some list of unicode symbols with FreeSerif font, which is have the most full unicode support (about 65k glyph)

but in reality Arch Linux with last version of KDE Plasma can render more

meanwhile as main OS font i'm using Noto - which is have very poor coverage


can someone explain why?

https://unix.stackexchange.com/question … characters

Last edited by chibo (2021-10-12 18:56:15)

Offline

#2 2021-10-12 16:08:07

seth
Member
Registered: 2012-09-03
Posts: 50,984

Re: How does Linux display Unicode characters?

Please replace the oversized image w/ a link/thumbnail (200x200 max)

Most clients/toolkits will use fontconfig to cascade glyph support, ie. they look along the suitable installed fonts until they can resolve the glyph.
https://wiki.archlinux.org/title/Font_configuration

Offline

#3 2021-10-12 19:00:24

chibo
Member
Registered: 2018-04-27
Posts: 87

Re: How does Linux display Unicode characters?

Please replace the oversized image w/ a link/thumbnail (200x200 max)

np, cause in 2k21 we all still having dial-up, right?)))

Most clients/toolkits will use fontconfig to cascade glyph support, ie. they look along the suitable installed fonts until they can resolve the glyph.
https://wiki.archlinux.org/title/Font_configuration

got it, thanks


but wiki is spatial and vague, so it useless (as always)


can you explain how can i extract all that symbols ?

Offline

#4 2021-10-12 19:44:39

seth
Member
Registered: 2012-09-03
Posts: 50,984

Re: How does Linux display Unicode characters?

cause in 2k21 we all still having dial-up

Because it's a rule in the forum.

but wiki is spatial and vague, so it useless (as always)

wft… do you think that nonsense is a smart move to get more help?
The wiki I linked is not the fontconfig API but meant as a reply to your generic noob question about "how does magic work?"

Knock yourself out:
https://www.freedesktop.org/software/fo … fig-devel/
I guess you need https://pypi.org/project/Python-fontconfig/ ?

Offline

#5 2021-10-12 21:32:02

chibo
Member
Registered: 2018-04-27
Posts: 87

Re: How does Linux display Unicode characters?

Because it's a rule in the forum.

so what now? we have to follow it blindly ???


wft… do you think that nonsense is a smart move to get more help?

nevermind.. (but think about it, even 'how to install' section is misleading garbage, w/o really useful small things)


Knock yourself out:

would be useful, as well as https://pypi.org/project/freetype-py/ thanks!

as far as i can see in `/etc/fonts/conf.d/README` there simple brute force mapping

so i just implement it in Python

Last edited by chibo (2021-10-12 21:33:08)

Offline

#6 2021-10-12 21:38:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How does Linux display Unicode characters?

chibo wrote:

Because it's a rule in the forum.

so what now? we have to follow it blindly ???

Yes. It's what you agreed to when signing up to these forums.
If you don't like it then you can choose not to post here.

Last edited by Slithery (2021-10-12 21:39:32)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB