2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "cardo";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.04";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://scholarsfonts.net/cardo104.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-NU6/H5f0JBlVo3L3uUcl7IvNxPMXD8UQY9k5o2YA5Vo=";
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
mv *.ttf $out/share/fonts/truetype
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|