Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 687076

Summary: media-fonts/noto-cjk-20170602 - multiple version installed at once
Product: Gentoo Linux Reporter: Shiba <shibotto>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: arfrever.fta, fonts, jstein, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=678432
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: noto-cjk-20190409.ebuild

Description Shiba 2019-05-31 15:07:05 UTC
According to https://github.com/googlefonts/noto-cjk/blob/32a5844539f2e348ed36b44e990f9b06d7fb89fe/README.formats noto-cjk is released in 4 different formats, each complete and independent from the other:

  * Super OTC
  * OTC
  * Multilingual OTF
  * Region-specific OTF

As of =media-fonts/noto-cjk-20170602 all 4 formats gets installed together, resulting in a huge waste of storage:

  1,8G    /usr/share/fonts/noto-cjk/

According to the README again, the Super OTC format is the smallest one if you want *every* font weight, however the only *mandatory* ones are Regular and Bold. Thus I believe the OTC format is the one that offers the best balance between installed size and modularity:

  OTC (Regular and Bold only)
  88M     /usr/share/fonts/noto-cjk/

  OTC (all font weights, very similar in size to Super OTC)
  295M    /usr/share/fonts/noto-cjk/

Using one of the OTF format is also an option, specifically to let users install only the needed language variants, however I did not test this.

Regardless of the format chosen, there is no point in installing all 4 versions.
Comment 1 Shiba 2019-05-31 15:11:17 UTC
Created attachment 578146 [details]
noto-cjk-20190409.ebuild

I'm also attaching an ebuild for testing purpose. It's based on 20190409 (it was more convenient for me), uses OTC format and has a USE="extra" to toggle installation of all font weights.
Comment 2 Larry the Git Cow gentoo-dev 2019-06-02 09:50:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0309036cf96fcfa2be45af2f9795ae2dc747949d

commit 0309036cf96fcfa2be45af2f9795ae2dc747949d
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-06-02 09:28:06 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-06-02 09:28:06 +0000

    media-fonts/noto-cjk: Version bump
    
    Also install only .ttc as ArchLinux does as a good compromise between space
    usage and provide all fonts (#687076)
    
    Closes: https://bugs.gentoo.org/687076
    Bug: https://bugs.gentoo.org/687094
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 media-fonts/noto-cjk/Manifest                 |  1 +
 media-fonts/noto-cjk/noto-cjk-20190416.ebuild | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)