mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #130213 from toastal/kanit
This commit is contained in:
commit
301e023293
3 changed files with 51 additions and 0 deletions
|
@ -10678,6 +10678,16 @@
|
|||
githubId = 9853194;
|
||||
name = "Philipp Bartsch";
|
||||
};
|
||||
toastal = {
|
||||
email = "toastal+nix@posteo.net";
|
||||
github = "toastal";
|
||||
githubId = 561087;
|
||||
name = "toastal";
|
||||
keys = [{
|
||||
longkeyid = "ed25519/5CCE6F1466D47C9E";
|
||||
fingerprint = "7944 74B7 D236 DAB9 C9EF E7F9 5CCE 6F14 66D4 7C9E";
|
||||
}];
|
||||
};
|
||||
tobim = {
|
||||
email = "nix@tobim.fastmail.fm";
|
||||
github = "tobim";
|
||||
|
|
39
pkgs/data/fonts/kanit/default.nix
Normal file
39
pkgs/data/fonts/kanit/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kanit";
|
||||
version = "unstable-2020-06-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cadsondemak";
|
||||
repo = pname;
|
||||
rev = "467dfe842185681d8042cd608b8291199dd37cda";
|
||||
sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/doc/${pname}/css/ $out/share/fonts/{opentype,truetype}
|
||||
|
||||
cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/${pname}
|
||||
cp $src/documentation/css/fonts.css $out/share/doc/${pname}/css
|
||||
cp $src/fonts/otf/*.otf $out/share/fonts/opentype
|
||||
cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://cadsondemak.github.io/kanit/";
|
||||
description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses";
|
||||
longDescription = ''
|
||||
Kanit means mathematics in Thai, and the Kanit typeface family is a formal
|
||||
Loopless Thai and Sans Latin design. It is a combination of concepts,
|
||||
mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric
|
||||
styles that makes it suitable for various uses, contemporary and
|
||||
futuristic. A notable detail is that the stroke terminals have flat angles,
|
||||
which allows the design to enjoy decreased spacing between letters while
|
||||
preserving readability and legibility at smaller point sizes.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.toastal ];
|
||||
};
|
||||
}
|
|
@ -22310,6 +22310,8 @@ in
|
|||
|
||||
juno-theme = callPackage ../data/themes/juno { };
|
||||
|
||||
kanit-font = callPackage ../data/fonts/kanit { };
|
||||
|
||||
kanji-stroke-order-font = callPackage ../data/fonts/kanji-stroke-order-font {};
|
||||
|
||||
kawkab-mono-font = callPackage ../data/fonts/kawkab-mono {};
|
||||
|
|
Loading…
Reference in a new issue