depot/third_party/nixpkgs/pkgs/data/fonts/cardo/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

37 lines
1.3 KiB
Nix

{ fetchzip, lib }:
let
version = "1.04";
in
fetchzip {
name = "cardo-${version}";
url = "http://scholarsfonts.net/cardo104.zip";
hash = "sha256-eBK6+VQpreWA7jIneNXOcKFcT+cJzhoQ9XXyq93SZ8M=";
stripRoot = false;
postFetch = ''
mkdir -p $out/share/fonts/truetype
mv $out/*.ttf $out/share/fonts/truetype
rm $out/*.pdf
'';
meta = with lib; {
description = "Cardo is a large Unicode font specifically designed for the needs of classicists, Biblical scholars, medievalists, and linguists";
longDescription = ''
Cardo is a large Unicode font specifically designed for the needs of
classicists, Biblical scholars, medievalists, and linguists. It also
works well for general typesetting in situations where a high-quality Old
Style font is appropriate. Its large character set supports many modern
languages as well as those needed by scholars. Cardo also contains
features that are required for high-quality typography such as ligatures,
text figures (also known as old style numerals), true small capitals and
a variety of punctuation and space characters.
'';
homepage = "http://scholarsfonts.net/cardofnt.html";
license = licenses.ofl;
maintainers = with lib.maintainers; [ kmein ];
platforms = platforms.all;
};
}