Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After installing the latest noto fonts, fontconfig slow down
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
yangkeao
n00b
n00b


Joined: 22 Feb 2019
Posts: 2

PostPosted: Fri Feb 22, 2019 11:31 am    Post subject: After installing the latest noto fonts, fontconfig slow down Reply with quote

I have upgrade package media-fonts/noto-20181024. In package noto-20181024, it contains 1800+ ttf files. Howeveer, in media-fonts/noto-20170403, it contains only 180+ ttf files.

So with the latest version of noto, my desktop (actually dwm) runs with unbearable cpu cost calling libfontconfig.so. Can fontconfig handle such a big number of font files? Or should I set some config to help it runs faster?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21358
Location: here

PostPosted: Fri Feb 22, 2019 11:37 am    Post subject: Reply with quote

yangkeao welcome to gentoo forum.

Look this bug https://bugs.gentoo.org/678432
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 998
Location: Frankfurt, Germany

PostPosted: Fri Feb 22, 2019 11:51 am    Post subject: Reply with quote

The current Noto ebuild installs too many files. Only a few are required.

1) Log in as root

2) cd /usr/share/fonts/noto

3) Remove all files except

Code:
NotoSerif-{Regular,Italic,Bold,BoldItalic}.ttf
NotoSans-{Regular,Italic,Bold,BoldItalic}.ttf
NotoSansMono-{Regular,Bold}.ttf
NotoSans{Symbols,Symbols2}-Regular.ttf

4) Run
Code:
mkfontscale
mkfontdir
Back to top
View user's profile Send private message
yangkeao
n00b
n00b


Joined: 22 Feb 2019
Posts: 2

PostPosted: Fri Feb 22, 2019 11:54 am    Post subject: Reply with quote

Aha, I decided to wait for https://bugs.gentoo.org/678432 getting fixed.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Fri Feb 22, 2019 9:01 pm    Post subject: Reply with quote

It's a pretty messed up situation. I've gone back to the old (2017) version, installed media-fonts/source-han-sans for CJK and put the updated NotoColorEmoji.ttf in my ~/.local/share/fonts/ for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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