Commit Graph

16 Commits

Author SHA1 Message Date
Ethan Carter Edwards
259ad945e9 source-han-*: use installFonts, modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-06-06 14:52:00 -07:00
jopejoe1
b0c0edfd73 sourceHanPackages: move packages to toplevel only 2025-11-04 19:50:45 +01:00
linsui
a7a5cb5c81 source-han-sans: 2.004 -> 2.005 2025-07-24 22:52:18 +08:00
Cryolitia PukNgae
61f89dbd2d source-han-serif: 2.001 -> 2.003, source-han-serif-vf-{otf,ttf]: 2.002 -> 2.003 2024-12-14 15:45:48 +08:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
linsui
185cef4cc0 sourceHanPackages: add variable fonts
Variable fonts are much smaller than static Super OTC fonts (36M vs 112M) and has two formats (OTF and TTF)
2023-10-05 21:52:23 +08:00
usertam
4b2bd1afde source-han-serif: 2.000 -> 2.001 2023-08-08 02:20:11 +08:00
Weijia Wang
7562d1ed9c treewide: convert 9 fonts to stdenvNoCC.mkDerivation 2023-01-28 09:08:17 +01:00
Scott Worley
af89d3a2be 78 fonts: Fix build after #173430 changed postFetch semantics 2023-01-17 01:03:11 +02:00
Vanilla
9dfc47b0a1 source-han-serif: 1.001R -> 2.000R 2021-10-25 21:11:39 +08:00
linsui
22aad26526 source-han-*: use fetchzip instead of mkDerivation 2021-09-30 19:00:22 +08:00
linsui
0901b41056 source-han-sans: 2.001 -> 2.004 2021-09-29 22:27:04 +08:00
linsui
3b0afe2ee4 source-han-*: install instead of ln
libreoffice doesn't work with fonts symlink
2021-09-29 00:46:39 +08:00
Gabriel Ebner
9fb2c88df4 source-han-*: reduce closure size by 2x
The file name of the installed font was the path returned by fetchurl:
`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-SourceHanSans.ttc`

This caused the derivation to reference the downloaded font file,
storing the font twice unless you optimise the store (each file is
~150M).
2020-08-17 19:23:12 +02:00
Emily
6eb45bf38a source-han-{sans,serif,mono}: {update,refactor,init}
* source-han-sans: 1.004R -> 2.001
* source-han-serif: switch to Super OTC
* source-han-mono: init at 1.002

The Source Han fonts now use shared package infrastructure, and the
Super OTC distributions, which unify the various scripts into a single
bundle file, improving automatic font selection and reducing overall
disk space usage. This also means that the Traditional
Chinese—Hong Kong language variant is now included.

The old package names including language are aliased to the Super OTC
bundle packages.
2020-02-29 14:57:27 +03:00