Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The font cannot be displayed properly.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bugfly
n00b
n00b


Joined: 17 Nov 2024
Posts: 4

PostPosted: Sun Nov 17, 2024 3:27 pm    Post subject: The font cannot be displayed properly. Reply with quote

These https://www.unicode.org/charts/PDF/U2980.pdf Miscellaneous Mathematical Symbols-B unicode cannot be displayed on my machine. What font should I install? :?: :)
⦀⦍⦒
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1770
Location: Germany

PostPosted: Sun Nov 17, 2024 4:12 pm    Post subject: Reply with quote

Hello and welcome.

At first make sure you have read https://wiki.gentoo.org/wiki/UTF-8
Also please tell us the output of emerge --info and which application you use to display this pdf.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 473
Location: Naarm/Melbourne, Australia

PostPosted: Mon Nov 18, 2024 1:02 am    Post subject: Reply with quote

In general, for font issues, i'd suggest that a better starting point would be the "Fonts" page on the wiki, which also contains concrete suggestions of packages to install for extended Unicode coverage. (Although looking at it now, it could do with some reworking - i'll try to do so.) That page also links to other pages that can be helpful depending on the context, such as the "Fontconfig" page, for configuring fonts in a GUI context (including in GUI-based terminal emulators); the "Fonts/Console" page, for dealing with fonts on the console / in Virtual Terminals; and the "Fonts/Background page", which gives an overview of information which can be helpful in understanding font-related problems.
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
bugfly
n00b
n00b


Joined: 17 Nov 2024
Posts: 4

PostPosted: Mon Nov 18, 2024 11:27 am    Post subject: Reply with quote

Banana wrote:
Hello and welcome.

At first make sure you have read https://wiki.gentoo.org/wiki/UTF-8
Also please tell us the output of emerge --info and which application you use to display this pdf.

Think you. I found the solution. :P I need install the media-fonts/symbola::guru package.But there is a new problem, that is, the file that needs to be downloaded for this package can not be found, I think we need to update the download link in the ebuild file. :P
Back to top
View user's profile Send private message
bugfly
n00b
n00b


Joined: 17 Nov 2024
Posts: 4

PostPosted: Mon Nov 18, 2024 11:28 am    Post subject: Reply with quote

flexibeast wrote:
In general, for font issues, i'd suggest that a better starting point would be the "Fonts" page on the wiki, which also contains concrete suggestions of packages to install for extended Unicode coverage. (Although looking at it now, it could do with some reworking - i'll try to do so.) That page also links to other pages that can be helpful depending on the context, such as the "Fontconfig" page, for configuring fonts in a GUI context (including in GUI-based terminal emulators); the "Fonts/Console" page, for dealing with fonts on the console / in Virtual Terminals; and the "Fonts/Background page", which gives an overview of information which can be helpful in understanding font-related problems.

Think you. :P I found the solution. :P I need install the media-fonts/symbola::guru package.But there is a new problem, that is, the file that needs to be downloaded for this package can not be found, I think we need to update the download link in the ebuild file. :P
Back to top
View user's profile Send private message
tholin
Apprentice
Apprentice


Joined: 04 Oct 2008
Posts: 205

PostPosted: Mon Nov 18, 2024 12:31 pm    Post subject: Reply with quote

There's an ugly trick I sometimes use to figure out which fonts have the symbol I need:

1. Install every package in the media-fonts category.
2. Run "fc-list :charset=0x2980" to figure out which of the installed fonts have the charset I need.
3. Uninstall all the unneeded fonts.

If I run fc-list :charset=0x2980 with the fonts on my system, with 0x2980 being the character code for ⦀ according to that pdf, I get this:
/usr/share/fonts/noto/NotoSansMath-Regular.ttf: Noto Sans Math:style=Regular
/usr/share/fonts/misc/6x12.pcf.gz: Misc Fixed:style=SemiCondensed
/usr/share/fonts/misc/6x12.pcf.otb: Misc Fixed:style=SemiCondensed

NotoSansMath comes from media-fonts/noto and 6x12.pcf from media-fonts/font-misc-misc. Noto has basically every symbol but it's enormous as a result.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1770
Location: Germany

PostPosted: Mon Nov 18, 2024 1:54 pm    Post subject: Reply with quote

bugfly wrote:
Banana wrote:
Hello and welcome.

At first make sure you have read https://wiki.gentoo.org/wiki/UTF-8
Also please tell us the output of emerge --info and which application you use to display this pdf.

Think you. I found the solution. :P I need install the media-fonts/symbola::guru package.But there is a new problem, that is, the file that needs to be downloaded for this package can not be found, I think we need to update the download link in the ebuild file. :P


It looks like the latest version of the ebuild contains an URL which is wrong. If you use the older version, there is an active link, but I'm note sure if this versin will help.

EDIT:
I've opened a PR
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
bugfly
n00b
n00b


Joined: 17 Nov 2024
Posts: 4

PostPosted: Sat Nov 30, 2024 3:29 am    Post subject: Reply with quote

tholin wrote:
There's an ugly trick I sometimes use to figure out which fonts have the symbol I need:

1. Install every package in the media-fonts category.
2. Run "fc-list :charset=0x2980" to figure out which of the installed fonts have the charset I need.
3. Uninstall all the unneeded fonts.

If I run fc-list :charset=0x2980 with the fonts on my system, with 0x2980 being the character code for ⦀ according to that pdf, I get this:
/usr/share/fonts/noto/NotoSansMath-Regular.ttf: Noto Sans Math:style=Regular
/usr/share/fonts/misc/6x12.pcf.gz: Misc Fixed:style=SemiCondensed
/usr/share/fonts/misc/6x12.pcf.otb: Misc Fixed:style=SemiCondensed

NotoSansMath comes from media-fonts/noto and 6x12.pcf from media-fonts/font-misc-misc. Noto has basically every symbol but it's enormous as a result.

Thank you!It's very useful. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum