View previous topic :: View next topic |
Author |
Message |
dasPaul Apprentice
Joined: 14 Feb 2012 Posts: 243 Location: Dresden
|
Posted: Tue Oct 19, 2021 8:23 am Post subject: fonts flood Noto Sans |
|
|
Hi there
I noticed my font list is literally flooded by the font family "Noto".
It doesnt matter where I open a font list (libreOfffice,Gimp,Inkscape) but everywhere the list is flooded by more than
600! "Noto" variants making it very annoying selecting fonts.
If I check font dir it shows:
Code: | #: find /usr/ -name 'Noto*' 2>/dev/null | wc -l
614 |
I noticed "media-fonts/noto" is a dependency of "kde-plasma/plasma-integration".
Is there a way to clean that mess? I cant remember any situation where I needed that Noto font. _________________ -=human without Windows®=-
sorry for my bad english! |
|
Back to top |
|
|
Gatsby Tux's lil' helper
Joined: 18 Jan 2010 Posts: 116 Location: 127.0.0.1
|
Posted: Tue Oct 19, 2021 8:33 am Post subject: |
|
|
As a long time KDE/Plasma user I was annoyed by the fact that media-fonts/noto was a dependence of kde-plasma/plasma-integration. So I put the latter in my local overlay and commented out the dependence on the noto fonts in the RDEPEND section of the ebuild. Et voila... finally dep-cleaned this abomination.
[ebuild N ] media-fonts/noto-20201226::gentoo USE="X -cjk -extra" 882.435 KiB _________________ Γνωθι σεαυτον. |
|
Back to top |
|
|
dasPaul Apprentice
Joined: 14 Feb 2012 Posts: 243 Location: Dresden
|
Posted: Tue Oct 19, 2021 9:29 am Post subject: |
|
|
Thank you, did the same. It works now.
BTW. there seems to be some discussion about the noto package here:
https://bugs.gentoo.org/678432 _________________ -=human without Windows®=-
sorry for my bad english! |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Oct 19, 2021 11:18 am Post subject: |
|
|
Quote: | So I put the latter in my local overlay and commented out the dependence on the noto fonts in the RDEPEND section of the ebuild. |
Wait... We have package.provided! Much easier.
Code: | echo "media-fonts/noto-20181024" >>/etc/portage/profile/package.provided |
I really like Noto! It's an excellent font and I want it to be installed. I use it as my main font in my browser and in other applications.
Here is what I did to get rid of all the crazy font variants I don't use.
- I installed noto
Code: | cd /usr/share/fonts/noto |
I deleted all files EXCEPT
Code: | NotoSerif-Bold.ttf
NotoSerif-BoldItalic.ttf
NotoSerif-Italic.ttf
NotoSerif-Regular.ttf
NotoSerif-Condensed.ttf
NotoSerif-CondensedBold.ttf
NotoSerif-CondensedBoldItalic.ttf
NotoSerif-CondensedItalic.ttf
NotoSans-Bold.ttf
NotoSans-BoldItalic.ttf
NotoSans-Italic.ttf
NotoSans-Regular.ttf
NotoSans-Condensed.ttf
NotoSans-CondensedBold.ttf
NotoSans-CondensedBoldItalic.ttf
NotoSans-CondensedItalic.ttf
NotoSansMono-Bold.ttf
NotoSansMono-Regular.ttf
NotoSansMono-Condensed.ttf
NotoSansMono-CondensedBold.ttf
NotoSansSymbols-Bold.ttf
NotoSansSymbols-Regular.ttf
NotoSansSymbols2-Regular.ttf |
Code: | mkfontdir; mkfontscale |
I renamed "/usr/share/fonts/noto" to "/usr/share/fonts/noto-base"
I uninstalled noto
I added noto to package.provided:
Code: | echo "media-fonts/noto-20181024" >>/etc/portage/profile/package.provided |
Last edited by mike155 on Tue Oct 19, 2021 3:30 pm; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Tue Oct 19, 2021 3:19 pm Post subject: |
|
|
Just to pile on alternatives - if you want to have some of Noto, but not all of it, you could use INSTALL_MASK / PKG_INSTALL_MASK to selectively prune its files at install time. Building on mike155's example, I would use (untested): Code: | INSTALL_MASK="
/usr/share/fonts/noto
-/usr/share/fonts/noto/NotoSerif-Bold.ttf
-/usr/share/fonts/noto/NotoSerif-BoldItalic.ttf
-/usr/share/fonts/noto/NotoSerif-Italic.ttf
-/usr/share/fonts/noto/NotoSerif-Regular.ttf
-/usr/share/fonts/noto/NotoSerif-Condensed.ttf
-/usr/share/fonts/noto/NotoSerif-CondensedBold.ttf
-/usr/share/fonts/noto/NotoSerif-CondensedBoldItalic.ttf
-/usr/share/fonts/noto/NotoSerif-CondensedItalic.ttf
-/usr/share/fonts/noto/NotoSans-Bold.ttf
-/usr/share/fonts/noto/NotoSans-BoldItalic.ttf
-/usr/share/fonts/noto/NotoSans-Italic.ttf
-/usr/share/fonts/noto/NotoSans-Regular.ttf
-/usr/share/fonts/noto/NotoSans-Condensed.ttf
-/usr/share/fonts/noto/NotoSans-CondensedBold.ttf
-/usr/share/fonts/noto/NotoSans-CondensedBoldItalic.ttf
-/usr/share/fonts/noto/NotoSans-CondensedItalic.ttf
-/usr/share/fonts/noto/NotoSansMono-Bold.ttf
-/usr/share/fonts/noto/NotoSansMono-Regular.ttf
-/usr/share/fonts/noto/NotoSansMono-Condensed.ttf
-/usr/share/fonts/noto/NotoSansMono-CondensedBold.ttf
-/usr/share/fonts/noto/NotoSansSymbols-Bold.ttf
-/usr/share/fonts/noto/NotoSansSymbols-Regular.ttf
-/usr/share/fonts/noto/NotoSansSymbols2-Regular.ttf
" | This should block writing anything to that directory other than the files that mike155 listed. It has the advantage that it allows the package to be recorded as installed, but blocks putting in the unwanted files. It has the property, which may be an advantage or a disadvantage, that newer versions of Noto can be installed as normal, and will be pruned according to these rules.
[Edit: corrected fons -> fonts per mike155's note that I had copied his typo.]
Last edited by Hu on Tue Oct 19, 2021 4:00 pm; edited 1 time in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Oct 19, 2021 3:34 pm Post subject: |
|
|
Hu, that's also a nice solution - probably better that the solution I posted.
Please note that there was a typo in my post that also escaped into Hu's post. It should be "fonts" instead of "fons". I corrected it in my post. Sorry for that! |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Tue Oct 19, 2021 4:01 pm Post subject: |
|
|
I edited my post according to mike155's correction. Hopefully that makes my post suitable to use as-is. It remains untested, however. |
|
Back to top |
|
|
Section_8 l33t
Joined: 22 May 2004 Posts: 627
|
Posted: Tue Oct 19, 2021 4:06 pm Post subject: |
|
|
Just to pile on more, this is what I picked up somewhere, a variation on Hu's method, using package.env:
In /etc/portage/package.env: Code: | media-fonts/noto noto.conf |
/etc/portage/package.env/noto.conf:
Code: | INSTALL_MASK="NotoKufiArabic*.ttf
NotoNaskhArabic*.ttf
NotoNasta*.ttf
NotoSansAdlam*.ttf
NotoSansArabic*.ttf
NotoSansArmenian*.ttf
NotoSansAvestan*.ttf
NotoSansBamum*.ttf
NotoSansBassaVah*.ttf
NotoSansBatak*.ttf
NotoSansBengali*.ttf
NotoSansBhaik*.ttf
NotoSansBrahmi*.ttf
NotoSansBuginese*.ttf
NotoSansBuhid*.ttf
NotoSansCanadianAboriginal*.ttf
NotoSansCarian*.ttf
NotoSansCaucasian*.ttf
NotoSansChakma*.ttf
NotoSansCham*.ttf
NotoSansCherokee*.ttf
NotoSansCoptic*.ttf
NotoSansCuneiform*.ttf
NotoSansCypriot*.ttf
NotoSansDeseret*.ttf
NotoSansDevanagari*.ttf
NotoSansDuployan*.ttf
NotoSansEqyptian*.ttf
NotoSansElbasan*.ttf
NotoSansEthiopic*.ttf
NotoSansGeorgian*.ttf
NotoSansGlagolitic*.ttf
NotoSansGothic*.ttf
NotoSansGrantha*.ttf
NotoSansGujarati*.ttf
NotoSansGurm*.ttf
NotoSansHanunoo*.ttf
NotoSansHatran*.ttf
NotoSansHebrew*.ttf
NotoSansImperial*.ttf
NotoSansInscriptional*.ttf
NotoSansJavan*.ttf
NotoSansKaithi*.ttf
NotoSansKannada*.ttf
NotoSansKayah*.ttf
NotoSansKhar*.ttf
NotoSansKhmer*.ttf
NotoSansKhud*.ttf
NotoSansLao*.ttf
NotoSansLepcha*.ttf
NotoSansLimbu*.ttf
NotoSansLinear*.ttf
NotoSansLisu*.ttf
NotoSansLycian*.ttf
NotoSansMaha*.ttf
NotoSansMalay*.ttf
NotoSansMandaic*.ttf
NotoSansManich*.ttf
NotoSansMarchen*.ttf
NotoSansMeetei*.ttf
NotoSansMende*.ttf
NotoSansMeroitic*.ttf
NotoSansMiao*.ttf
NotoSansModi*.ttf
NotoSansMongolian*.ttf
NotoSansMro*.ttf
NotoSansMultani*.ttf
NotoSansMyanmar*.ttf
NotoSansNabat*.ttf
NotoSansNewa*.ttf
NotoSansNewTaiLue*.ttf
NotoSansNKo*.ttf
NotoSansO*.ttf
NotoSansP*.ttf
NotoSansR*.ttf
NotoSansSamaritan*.ttf
NotoSansSaur*.ttf
NotoSansSharada*.ttf
NotoSansShavian*.ttf
NotoSansSinhala*.ttf
NotoSansSora*.ttf
NotoSansSundanese*.ttf
NotoSansSylot*.ttf
NotoSansSyriac*.ttf
NotoSansT*.ttf
NotoSansUgaritic*.ttf
NotoSansVai*.ttf
NotoSansWarang*.ttf
NotoSansYi*.ttf
NotoSerifA*.ttf
NotoSerifB*.ttf
NotoSerifDevan*.ttf
NotoSerifEthiopic*.ttf
NotoSerifG*.ttf
NotoSerifHebrew*.ttf
NotoSerifK*.ttf
NotoSerifLao*.ttf
NotoSerifM*.ttf
NotoSerifSinhala*.ttf
NotoSerifT*.ttf"
|
|
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Tue Oct 19, 2021 4:48 pm Post subject: |
|
|
Yep, NOTO are actually pretty good and comprehensive fonts. But it would be great if something was done with font packaging - such that for instance installing the fonts respect the LOCALE settings, and installed among languages only what is needed (or specifically asked for via USE flags) |
|
Back to top |
|
|
acidrums4 Tux's lil' helper
Joined: 05 Feb 2009 Posts: 147 Location: Al otro lado del monitor
|
Posted: Wed Nov 24, 2021 12:15 pm Post subject: |
|
|
Another way to (not to) deal with them with having to fiddle with Portage stuff or deleting them is via fontconfig.
For example, I created a new config file for them:
Code: | /etc/fonts/conf.d/95-noto.conf |
And put the following rule in there:
Code: | <?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<selectfont>
<rejectfont>
<glob>/usr/share/fonts/noto/*</glob>
</rejectfont>
</selectfont> |
Voilá. You don't have to delete any of them. You will keep them just in case, you just won't see them in any font selection dialogs. |
|
Back to top |
|
|
|