[bug#70496,00/14] Remove duplications in fonts by split outputs

Message ID cover.1713693629.git.iyzsong@member.fsf.org
Headers
Series Remove duplications in fonts by split outputs |

Message

tusharhero--- via Guix-patches via April 21, 2024, 10:22 a.m. UTC
From: 宋文武 <iyzsong@member.fsf.org>

Hello, here are some patches for font packages which updates
the install phase in font-build-system for multiple outputs, and
use that for some font packages.

When a font family is provided in different formats (eg: both ttf and
otf), font picker will list duplicated entries.  To remove those
duplicated entries, these patches will prefer "otf" over "ttf" files
by using '("out" "ttf")) as package's outputs field, so that otf files
will go into the default "out" output.

I think some good defaults for "out" are:
  Prefer "otf" over "ttf", as the otf has better features and smaller size.
  Prefer "otb" over "pcf", as pango only support otb as bitmap fonts.
  Prefer "otc/ttc" over separated ttf/otf files, as collection has smaller size.
  Always use "woff" for web fonts or delete them, those are only used for serving web pages.

The font-build-system change will trigger mass rebuilds due to
fontconfig, so this maybe go into "core-updates" or a separated branch.


Sou Bunnbu (宋文武) (14):
  build-system: font: Handle multiple outputs in the install phase.
  gnu: font-artifika: Split outputs.
  gnu: font-chivo: Split outputs.
  gnu: font-ibm-plex: Update to 6.4.0.
  gnu: font-ibm-plex: Split outputs.
  gnu: font-intel-one-mono: Remove unnecessary 'split-outputs' phase.
  gnu: font-canada1500: Split outputs.
  gnu: font-linuxlibertine: Split outputs.
  gnu: font-libertinus: Split outputs.
  gnu: font-recursive: Split outputs.
  gnu: font-orbitron: Split outputs.
  gnu: font-spleen: Remove unnecessary custom install phase.
  gnu: font-scientifica: Remove unnecessary custom install phase.
  gnu: font-cormorant: Split outputs.

 gnu/packages/fonts.scm           | 114 ++++++-------------------------
 guix/build/font-build-system.scm |  32 +++++++--
 2 files changed, 48 insertions(+), 98 deletions(-)


base-commit: a1d711c92e119f6b5b8e99a620cdba92a4ca3bfb
  

Comments

Christopher Baines May 17, 2024, 4:57 p.m. UTC | #1
retitle 70496 [core-updates] Remove duplications in fonts by split outputs
thanks
  
宋文武 Sept. 2, 2024, 5:36 a.m. UTC | #2
Christopher Baines <mail@cbaines.net> writes:

> retitle 70496 [core-updates] Remove duplications in fonts by split outputs
> thanks

Hello, as the 'core-updates' branch had been retired, I pushed those
patches into a new 'fonts-split-outputs' branch now.
  
Andreas Enge Sept. 18, 2024, 9:01 a.m. UTC | #3
Hello,

there has not been any comment on the branch, so just a quick message
that I like the idea.

Maybe when pushing to master you could copy part of your cover letter
into the commit message of the first commit changing the font build system,
so that we see a justification for the change in the git history?

Andreas
  
宋文武 Jan. 22, 2025, 10:26 a.m. UTC | #4
Merged already, close.