forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-{sans,serif}-pro: reintroduce older font versions
Recently, Source Sans/Serif Pro fonts got renamed. The "Pro" suffix was replaced with the major version of the font name. In the case of Source Serif, the change was announced in adobe-fonts/source-serif#77 and besides the name font metric have been changed too. Therefore, documents using the old "Pro" version might look differently when the font is changed to the new "4" version. In the case of Source Sans, the metrics seem not to have been changed (adobe-fonts/source-sans#192), but this comment (adobe-fonts/source-sans#192 (comment)) suggests that it might happen in the future. Due to the above, it makes sense to keep both old "Pro" and new (numbered) fonts as separate packages. This commit reintroduced the old "Pro" versions. It seems that Arch Linux is also distributing both versions: https://github.com/archlinux/svntogit-packages/blob/0d70461e5a26cde02cadfda64078eb93192c6caa/trunk/PKGBUILD Closes NixOS#157972
- Loading branch information
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib, fetchzip }: | ||
|
||
# Source Sans Pro got renamed to Source Sans 3 (see | ||
# https://github.com/adobe-fonts/source-sans/issues/192). This is the | ||
# last version named "Pro". It is useful for backward compatibility | ||
# with older documents/templates/etc. | ||
let | ||
version = "3.006"; | ||
in fetchzip { | ||
name = "source-sans-pro-${version}"; | ||
|
||
url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip"; | ||
|
||
postFetch = '' | ||
mkdir -p $out/share/fonts/{opentype,truetype,variable} | ||
unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype | ||
unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype | ||
unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable | ||
''; | ||
|
||
sha256 = "sha256-uWr/dFyLF65v0o6+oN/3RQoe4ziPspzGB1rgiBkoTYY="; | ||
|
||
meta = with lib; { | ||
homepage = "https://adobe-fonts.github.io/source-sans/"; | ||
description = "Sans serif font family for user interface environments"; | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ ttuegel ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib, fetchzip }: | ||
|
||
# Source Serif Pro got renamed to Source Serif 4 (see | ||
# https://github.com/adobe-fonts/source-serif/issues/77). This is the | ||
# last version named "Pro". It is useful for backward compatibility | ||
# with older documents/templates/etc. | ||
let | ||
version = "3.001"; | ||
in fetchzip { | ||
name = "source-serif-pro-${version}"; | ||
|
||
url = "https://github.com/adobe-fonts/source-serif/releases/download/${version}R/source-serif-pro-${version}R.zip"; | ||
|
||
postFetch = '' | ||
mkdir -p $out/share/fonts/{opentype,truetype,variable} | ||
unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype | ||
unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype | ||
unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable | ||
''; | ||
|
||
sha256 = "sha256-rYWk8D41QMuuSP+cQMk8ttT7uX3a7gBk4OqjA7K9udk="; | ||
|
||
meta = with lib; { | ||
homepage = "https://adobe-fonts.github.io/source-serif/"; | ||
description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans"; | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ ttuegel ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters