diff options
author | Robert Helgesson <robert@rycee.net> | 2015-03-12 23:14:21 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-03-21 00:33:14 +0100 |
commit | cebc43403ac33ed985353dca24a0bf67ad0c259b (patch) | |
tree | db48f4784ca3e003688fa03d9988b311b81f5a7a /pkgs/data/fonts/comic-relief | |
parent | 2fcb4118196157fac635351c7bd4e15ee9019db1 (diff) |
Add packages for a number of fonts.
The added fonts are - Caladea, - Carlito, - Comfortaa, - Comic Relief, - Crimson, - Fantasque Sans Mono, - Lobster Two, - Pecita, - Quattrocento, and - Quattrocento Sans.
Diffstat (limited to 'pkgs/data/fonts/comic-relief')
-rw-r--r-- | pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf | 18 | ||||
-rw-r--r-- | pkgs/data/fonts/comic-relief/default.nix | 49 |
2 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf b/pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf new file mode 100644 index 0000000000000..be5f6cca866df --- /dev/null +++ b/pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <!-- Configure Comic Relief as a metric-compatible alias for the + Microsoft Comic Sans font family. --> + <alias binding="same"> + <family>Comic Sans MS</family> + <accept> + <family>Comic Relief</family> + </accept> + </alias> + <alias binding="same"> + <family>Comic Relief</family> + <default> + <family>Comic Sans MS</family> + </default> + </alias> +</fontconfig> diff --git a/pkgs/data/fonts/comic-relief/default.nix b/pkgs/data/fonts/comic-relief/default.nix new file mode 100644 index 0000000000000..a8b2b786efaf1 --- /dev/null +++ b/pkgs/data/fonts/comic-relief/default.nix @@ -0,0 +1,49 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + name = "comic-relief-${version}"; + version = "1.1"; + + src = fetchurl { + url = "https://dl.dropbox.com/u/56493902/loudifier/comicrelief.zip"; + sha256 = "0wpf10m9zmcfvcxgc7dxzdm3syam7d7qxlfabgr1nxzq299kh8ch"; + }; + + buildInputs = [unzip]; + + phases = ["unpackPhase" "installPhase"]; + + unpackCmd = '' + mkdir -p ${name} + unzip -qq -d ${name} $src + ''; + + installPhase = '' + mkdir -p $out/etc/fonts/conf.d + mkdir -p $out/share/doc/${name} + mkdir -p $out/share/fonts/truetype + cp -v *.ttf $out/share/fonts/truetype + cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf + cp -v FONTLOG.txt $out/share/doc/${name} + ''; + + meta = with stdenv.lib; { + homepage = http://loudifier.com/comic-relief/; + description = "A font metric-compatible with Microsoft Comic Sans"; + longDescription = '' + Comic Relief is a typeface designed to be metrically equivalent + to the popular Comic Sans MS. Comic Relief can be used in place + of Comic Sans MS without having to move, resize, or reset any + part of the copy. It contains all glyphs and characters + available in Comic Sans MS. + ''; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [maintainers.rycee]; + + # Reduce the priority of this package. The intent is that if you + # also install the `corefonts` package, then you probably will not + # want to install the font alias of this package. + priority = 10; + }; +} |