summary refs log tree commit diff
path: root/pkgs/data/fonts/doulos-sil
diff options
context:
space:
mode:
authorft <git@f-t.me>2018-10-13 20:30:24 -0700
committerft <git@f-t.me>2018-10-13 20:30:24 -0700
commita041dd92fe79588fca073a82ff157d52651b5365 (patch)
tree1ba3df7cef6a5efefe463c7f785193eb39d21c88 /pkgs/data/fonts/doulos-sil
parenta80026ec0b78c656cc18d4121440e60274125552 (diff)
downloadnixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar.gz
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar.bz2
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar.lz
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar.xz
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.tar.zst
nixlib-a041dd92fe79588fca073a82ff157d52651b5365.zip
sil-fonts: added andika, charis, doulos
Diffstat (limited to 'pkgs/data/fonts/doulos-sil')
-rw-r--r--pkgs/data/fonts/doulos-sil/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/data/fonts/doulos-sil/default.nix b/pkgs/data/fonts/doulos-sil/default.nix
new file mode 100644
index 000000000000..324f6f63e556
--- /dev/null
+++ b/pkgs/data/fonts/doulos-sil/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchzip}:
+
+let
+  version = "5.000";
+in
+  fetchzip rec {
+    name = "doulos-sil-${version}";
+
+    url = "https://software.sil.org/downloads/r/doulos/DoulosSIL-${version}.zip";
+
+    postFetch = ''
+      mkdir -p $out/share/{doc,fonts}
+      unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
+      unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
+    '';
+
+    sha256 = "04a9cr7jbw7d8llcj8xsqp9rp8w6gcgbd9sdwvi02kz7jhqa0vad";
+
+    meta = with stdenv.lib; {
+      homepage = https://software.sil.org/doulos;
+      description = "A font that provides complete support for the International Phonetic Alphabet";
+      longDescription = ''
+      This Doulos SIL font is essentially the same design as the SIL Doulos font first released by SIL in 1992. The design has been changed from the original in that it has been scaled down to be a better match with contemporary digital fonts, such as Times New RomanĀ®. This current release is a regular typeface, with no bold or italic version available or planned. It is intended for use alongside other Times-like fonts where a range of styles (italic, bold) are not needed. Therefore, just one font is included in the Doulos SIL release: Doulos SIL Regular.
+
+      The goal for this product was to provide a single Unicode-based font family that would contain a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
+      '';
+      license = licenses.ofl;
+      platforms = platforms.all;
+      maintainers = [ maintainers.f--t ];
+    };
+  }