diff --git a/pkgs/data/fonts/sarabun/default.nix b/pkgs/data/fonts/sarabun/default.nix new file mode 100644 index 000000000000..42bc349effe2 --- /dev/null +++ b/pkgs/data/fonts/sarabun/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "sarabun"; + version = "unstable-2018-08-24"; + + src = fetchFromGitHub { + owner = "cadsondemak"; + repo = pname; + rev = "854cdbc6afa002ff8c2ce6aa7b86f99c7f71c9eb"; + sha256 = "jcSQ72WK0GucZPgG7IQKrKzCOEbGgbQVl21RIKSF6A0="; + }; + + outputs = [ "out" "doc" ]; + + buildPhase = '' + mkdir -p $doc/${pname} $out/share/fonts/truetype + + cp -r $src/OFL.txt $src/docs/* $doc/${pname} + cp $src/fonts/*.ttf $out/share/fonts/truetype + ''; + + meta = { + homepage = "https://cadsondemak.github.io/${pname}/"; + description = "A slightly-condensed looped Thai and sans serif Latin typeface for communications"; + longDescription = '' + The most popular typeface from the 13 fonts from SIPA Thailand’s National + fonts project. Sarabun was designed by Suppakit Chalermlarp to be a + serious text face. Great choice for a long reading formal text. This font + was selected by the royal Thai government to be the official typeface for + documentation purpose. It was also adopted by many private organizations + to be used as a communication font. Sarabun has a slightly condensed + proportion which fits perfectly with Thai legibility. It also carries a + neutral Thai traditional loop design which can easily fit in with any + occasion. Probably one of the most today’s familiar Thai loop typefaces. + ''; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ toastal ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99556e5d08bc..edc2fef850e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29804,6 +29804,8 @@ with pkgs; sampradaya = callPackage ../data/fonts/sampradaya { }; + sarabun-font = callPackage ../data/fonts/sarabun { }; + sarasa-gothic = callPackage ../data/fonts/sarasa-gothic { }; savepagenow = callPackage ../tools/misc/savepagenow { };