···1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3+<fontconfig>
4+ <!-- Configure Caladea as a metric-compatible alias for the
5+ Microsoft Cambria font family. -->
6+ <alias binding="same">
7+ <family>Cambria</family>
8+ <accept>
9+ <family>Caladea</family>
10+ </accept>
11+ </alias>
12+ <alias binding="same">
13+ <family>Caladea</family>
14+ <default>
15+ <family>Cambria</family>
16+ </default>
17+ </alias>
18+</fontconfig>
+40
pkgs/data/fonts/caladea/default.nix
···0000000000000000000000000000000000000000
···1+{stdenv, fetchurl}:
2+3+stdenv.mkDerivation rec {
4+ name = "caladea-${version}";
5+ version = "20130214";
6+7+ src = fetchurl {
8+ url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
9+ sha256 = "02addvvkbvf3bn21kfyj10j9w1c8hdxxld4wjmnc1j8ksqpir3f4";
10+ };
11+12+ phases = ["unpackPhase" "installPhase"];
13+14+ installPhase = ''
15+ mkdir -p $out/etc/fonts/conf.d
16+ mkdir -p $out/share/fonts/truetype
17+ cp -v *.ttf $out/share/fonts/truetype
18+ cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
19+ '';
20+21+ meta = with stdenv.lib; {
22+ # This font doesn't appear to have any official web site but this
23+ # one provides some good information and samples.
24+ homepage = http://openfontlibrary.org/en/font/caladea;
25+ description = "A serif font metric-compatible with Microsoft Cambria";
26+ longDescription = ''
27+ Caladea is a free font that is metric-compatible with the
28+ Microsoft Cambria font. Developed by Carolina Giovagnoli and
29+ Andrés Torresi at Huerta Tipográfica foundry.
30+ '';
31+ license = licenses.asl20;
32+ platforms = platforms.all;
33+ maintainers = [maintainers.rycee];
34+35+ # Reduce the priority of this package. The intent is that if you
36+ # also install the `vista-fonts` package, then you probably will
37+ # not want to install the font alias of this package.
38+ priority = 10;
39+ };
40+}
+18
pkgs/data/fonts/carlito/calibri-alias.conf
···000000000000000000
···1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3+<fontconfig>
4+ <!-- Configure Carlito as a metric-compatible alias for the
5+ Microsoft Calibri font family. -->
6+ <alias binding="same">
7+ <family>Calibri</family>
8+ <accept>
9+ <family>Carlito</family>
10+ </accept>
11+ </alias>
12+ <alias binding="same">
13+ <family>Carlito</family>
14+ <default>
15+ <family>Calibri</family>
16+ </default>
17+ </alias>
18+</fontconfig>
+40
pkgs/data/fonts/carlito/default.nix
···0000000000000000000000000000000000000000
···1+{stdenv, fetchurl}:
2+3+stdenv.mkDerivation rec {
4+ name = "carlito-${version}";
5+ version = "20130920";
6+7+ src = fetchurl {
8+ url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
9+ sha256 = "0nmgzp6gdvv4dipswrw0l1bfjp4jbic2qvm7dpqiq71jpin2plab";
10+ };
11+12+ phases = ["unpackPhase" "installPhase"];
13+14+ installPhase = ''
15+ mkdir -p $out/etc/fonts/conf.d
16+ mkdir -p $out/share/fonts/truetype
17+ cp -v *.ttf $out/share/fonts/truetype
18+ cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
19+ '';
20+21+ meta = with stdenv.lib; {
22+ # This font doesn't appear to have any official web site but this
23+ # one provides some good information and samples.
24+ homepage = http://openfontlibrary.org/en/font/carlito;
25+ description = "A sans-serif font metric-compatible with Microsoft Calibri";
26+ longDescription = ''
27+ Carlito is a free font that is metric-compatible with the
28+ Microsoft Calibri font. The font is designed by Łukasz Dziedzic
29+ of the tyPoland foundry and based his Lato font.
30+ '';
31+ license = licenses.ofl;
32+ platforms = platforms.all;
33+ maintainers = [maintainers.rycee];
34+35+ # Reduce the priority of this package. The intent is that if you
36+ # also install the `vista-fonts` package, then you probably will
37+ # not want to install the font alias of this package.
38+ priority = 10;
39+ };
40+}
···1+{stdenv, fetchurl, unzip}:
2+3+stdenv.mkDerivation rec {
4+ name = "comic-relief-${version}";
5+ version = "1.1";
6+7+ src = fetchurl {
8+ url = "https://dl.dropbox.com/u/56493902/loudifier/comicrelief.zip";
9+ sha256 = "0wpf10m9zmcfvcxgc7dxzdm3syam7d7qxlfabgr1nxzq299kh8ch";
10+ };
11+12+ buildInputs = [unzip];
13+14+ phases = ["unpackPhase" "installPhase"];
15+16+ unpackCmd = ''
17+ mkdir -p ${name}
18+ unzip -qq -d ${name} $src
19+ '';
20+21+ installPhase = ''
22+ mkdir -p $out/etc/fonts/conf.d
23+ mkdir -p $out/share/doc/${name}
24+ mkdir -p $out/share/fonts/truetype
25+ cp -v *.ttf $out/share/fonts/truetype
26+ cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
27+ cp -v FONTLOG.txt $out/share/doc/${name}
28+ '';
29+30+ meta = with stdenv.lib; {
31+ homepage = http://loudifier.com/comic-relief/;
32+ description = "A font metric-compatible with Microsoft Comic Sans";
33+ longDescription = ''
34+ Comic Relief is a typeface designed to be metrically equivalent
35+ to the popular Comic Sans MS. Comic Relief can be used in place
36+ of Comic Sans MS without having to move, resize, or reset any
37+ part of the copy. It contains all glyphs and characters
38+ available in Comic Sans MS.
39+ '';
40+ license = licenses.ofl;
41+ platforms = platforms.all;
42+ maintainers = [maintainers.rycee];
43+44+ # Reduce the priority of this package. The intent is that if you
45+ # also install the `corefonts` package, then you probably will not
46+ # want to install the font alias of this package.
47+ priority = 10;
48+ };
49+}