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.
This commit is contained in:
Robert Helgesson
2015-03-21 00:33:14 +01:00
parent 2fcb411819
commit cebc43403a
14 changed files with 457 additions and 0 deletions
@@ -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>
+49
View File
@@ -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;
};
}