diff options
author | Ricky Elrod <ricky@elrod.me> | 2014-05-06 03:48:04 -0400 |
---|---|---|
committer | Ricky Elrod <ricky@elrod.me> | 2014-05-06 03:48:04 -0400 |
commit | df0014488af9d0e6559143c2180fc20c6e865079 (patch) | |
tree | 3840483c1449e36d5aae013532b2f99c7bf49240 /pkgs/data/fonts/poly | |
parent | 97262a59b55695eaed16356b4a3fd135ccd837a7 (diff) | |
download | nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar.gz nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar.bz2 nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar.lz nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar.xz nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.tar.zst nixpkgs-df0014488af9d0e6559143c2180fc20c6e865079.zip |
First attempt at data/fonts/poly
Diffstat (limited to 'pkgs/data/fonts/poly')
-rw-r--r-- | pkgs/data/fonts/poly/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/data/fonts/poly/default.nix b/pkgs/data/fonts/poly/default.nix new file mode 100644 index 00000000000..fbb1db8a28e --- /dev/null +++ b/pkgs/data/fonts/poly/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "poly"; + + regular = fetchurl { + # Finally a mirror that has a sha256 that doesn't change. + url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Regular.otf"; + sha256 = "1mxp2lvki6b1h7r9xcj1ld0g4z5y3dmsal85xam4yr764zpjzaiw"; + }; + + italic = fetchurl { + # Finally a mirror that has a sha256 that doesn't change. + url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Italic.otf"; + sha256 = "1chzcy3kyi7wpr4iq4aj1v24fq1wwph1v5z96dimlqcrnvm66h2l"; + }; + + buildInputs = [unzip]; + + sourceRoot = "."; + + unpackPhase = "true"; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + cp ${regular} $out/share/fonts/opentype/Poly-Regular.otf + cp ${italic} $out/share/fonts/opentype/Poly-Italic.otf + ''; + + meta = { + description = "Medium contrast serif font."; + longDescription = '' + With short ascenders and a very high x-height, Poly is efficient in small + sizes. Thanks to its careful balance between the x-height and glyph widths, + it allows more economy and legibility than standard web serifs, even in + small sizes. The aglutinative language for which it was designed contains + very long words. The goal was to develop a typeface that would tolerate + cramped tracking and that would increase the number of letters on a single + line. Poly is a Unicode typeface family that supports Open Type features + and languages that use the Latin script and its variants. + ''; + homepage = http://www.fontsquirrel.com/fonts/poly; + license = [ "OFL" ]; + maintainers = with stdenv.lib.maintainers; [ relrod ]; + platforms = with stdenv.lib.platforms; linux; + }; +} |