View previous topic :: View next topic |
Author |
Message |
yangkeao n00b
Joined: 22 Feb 2019 Posts: 2
|
Posted: Fri Feb 22, 2019 11:31 am Post subject: After installing the latest noto fonts, fontconfig slow down |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Fri Feb 22, 2019 11:37 am Post subject: |
|
|
yangkeao welcome to gentoo forum.
Look this bug https://bugs.gentoo.org/678432 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri Feb 22, 2019 11:51 am Post subject: |
|
|
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 |
|
|
yangkeao n00b
Joined: 22 Feb 2019 Posts: 2
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Feb 22, 2019 9:01 pm Post subject: |
|
|
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 |
|
|
|