···11+<?xml version="1.0" encoding="UTF-8"?>
22+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
33+<fontconfig>
44+ <!-- Configure Caladea as a metric-compatible alias for the
55+ Microsoft Cambria font family. -->
66+ <alias binding="same">
77+ <family>Cambria</family>
88+ <accept>
99+ <family>Caladea</family>
1010+ </accept>
1111+ </alias>
1212+ <alias binding="same">
1313+ <family>Caladea</family>
1414+ <default>
1515+ <family>Cambria</family>
1616+ </default>
1717+ </alias>
1818+</fontconfig>
+40
pkgs/data/fonts/caladea/default.nix
···11+{stdenv, fetchurl}:
22+33+stdenv.mkDerivation rec {
44+ name = "caladea-${version}";
55+ version = "20130214";
66+77+ src = fetchurl {
88+ url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
99+ sha256 = "02addvvkbvf3bn21kfyj10j9w1c8hdxxld4wjmnc1j8ksqpir3f4";
1010+ };
1111+1212+ phases = ["unpackPhase" "installPhase"];
1313+1414+ installPhase = ''
1515+ mkdir -p $out/etc/fonts/conf.d
1616+ mkdir -p $out/share/fonts/truetype
1717+ cp -v *.ttf $out/share/fonts/truetype
1818+ cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
1919+ '';
2020+2121+ meta = with stdenv.lib; {
2222+ # This font doesn't appear to have any official web site but this
2323+ # one provides some good information and samples.
2424+ homepage = http://openfontlibrary.org/en/font/caladea;
2525+ description = "A serif font metric-compatible with Microsoft Cambria";
2626+ longDescription = ''
2727+ Caladea is a free font that is metric-compatible with the
2828+ Microsoft Cambria font. Developed by Carolina Giovagnoli and
2929+ Andrés Torresi at Huerta Tipográfica foundry.
3030+ '';
3131+ license = licenses.asl20;
3232+ platforms = platforms.all;
3333+ maintainers = [maintainers.rycee];
3434+3535+ # Reduce the priority of this package. The intent is that if you
3636+ # also install the `vista-fonts` package, then you probably will
3737+ # not want to install the font alias of this package.
3838+ priority = 10;
3939+ };
4040+}
+18
pkgs/data/fonts/carlito/calibri-alias.conf
···11+<?xml version="1.0" encoding="UTF-8"?>
22+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
33+<fontconfig>
44+ <!-- Configure Carlito as a metric-compatible alias for the
55+ Microsoft Calibri font family. -->
66+ <alias binding="same">
77+ <family>Calibri</family>
88+ <accept>
99+ <family>Carlito</family>
1010+ </accept>
1111+ </alias>
1212+ <alias binding="same">
1313+ <family>Carlito</family>
1414+ <default>
1515+ <family>Calibri</family>
1616+ </default>
1717+ </alias>
1818+</fontconfig>
+40
pkgs/data/fonts/carlito/default.nix
···11+{stdenv, fetchurl}:
22+33+stdenv.mkDerivation rec {
44+ name = "carlito-${version}";
55+ version = "20130920";
66+77+ src = fetchurl {
88+ url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
99+ sha256 = "0nmgzp6gdvv4dipswrw0l1bfjp4jbic2qvm7dpqiq71jpin2plab";
1010+ };
1111+1212+ phases = ["unpackPhase" "installPhase"];
1313+1414+ installPhase = ''
1515+ mkdir -p $out/etc/fonts/conf.d
1616+ mkdir -p $out/share/fonts/truetype
1717+ cp -v *.ttf $out/share/fonts/truetype
1818+ cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
1919+ '';
2020+2121+ meta = with stdenv.lib; {
2222+ # This font doesn't appear to have any official web site but this
2323+ # one provides some good information and samples.
2424+ homepage = http://openfontlibrary.org/en/font/carlito;
2525+ description = "A sans-serif font metric-compatible with Microsoft Calibri";
2626+ longDescription = ''
2727+ Carlito is a free font that is metric-compatible with the
2828+ Microsoft Calibri font. The font is designed by Łukasz Dziedzic
2929+ of the tyPoland foundry and based his Lato font.
3030+ '';
3131+ license = licenses.ofl;
3232+ platforms = platforms.all;
3333+ maintainers = [maintainers.rycee];
3434+3535+ # Reduce the priority of this package. The intent is that if you
3636+ # also install the `vista-fonts` package, then you probably will
3737+ # not want to install the font alias of this package.
3838+ priority = 10;
3939+ };
4040+}
···11+<?xml version="1.0" encoding="UTF-8"?>
22+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
33+<fontconfig>
44+ <!-- Configure Comic Relief as a metric-compatible alias for the
55+ Microsoft Comic Sans font family. -->
66+ <alias binding="same">
77+ <family>Comic Sans MS</family>
88+ <accept>
99+ <family>Comic Relief</family>
1010+ </accept>
1111+ </alias>
1212+ <alias binding="same">
1313+ <family>Comic Relief</family>
1414+ <default>
1515+ <family>Comic Sans MS</family>
1616+ </default>
1717+ </alias>
1818+</fontconfig>
+49
pkgs/data/fonts/comic-relief/default.nix
···11+{stdenv, fetchurl, unzip}:
22+33+stdenv.mkDerivation rec {
44+ name = "comic-relief-${version}";
55+ version = "1.1";
66+77+ src = fetchurl {
88+ url = "https://dl.dropbox.com/u/56493902/loudifier/comicrelief.zip";
99+ sha256 = "0wpf10m9zmcfvcxgc7dxzdm3syam7d7qxlfabgr1nxzq299kh8ch";
1010+ };
1111+1212+ buildInputs = [unzip];
1313+1414+ phases = ["unpackPhase" "installPhase"];
1515+1616+ unpackCmd = ''
1717+ mkdir -p ${name}
1818+ unzip -qq -d ${name} $src
1919+ '';
2020+2121+ installPhase = ''
2222+ mkdir -p $out/etc/fonts/conf.d
2323+ mkdir -p $out/share/doc/${name}
2424+ mkdir -p $out/share/fonts/truetype
2525+ cp -v *.ttf $out/share/fonts/truetype
2626+ cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
2727+ cp -v FONTLOG.txt $out/share/doc/${name}
2828+ '';
2929+3030+ meta = with stdenv.lib; {
3131+ homepage = http://loudifier.com/comic-relief/;
3232+ description = "A font metric-compatible with Microsoft Comic Sans";
3333+ longDescription = ''
3434+ Comic Relief is a typeface designed to be metrically equivalent
3535+ to the popular Comic Sans MS. Comic Relief can be used in place
3636+ of Comic Sans MS without having to move, resize, or reset any
3737+ part of the copy. It contains all glyphs and characters
3838+ available in Comic Sans MS.
3939+ '';
4040+ license = licenses.ofl;
4141+ platforms = platforms.all;
4242+ maintainers = [maintainers.rycee];
4343+4444+ # Reduce the priority of this package. The intent is that if you
4545+ # also install the `corefonts` package, then you probably will not
4646+ # want to install the font alias of this package.
4747+ priority = 10;
4848+ };
4949+}