2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-11-30 08:33:03 +00:00
|
|
|
let
|
|
|
|
version = "2020-11-14";
|
|
|
|
in
|
2020-11-06 00:33:48 +00:00
|
|
|
fetchzip {
|
|
|
|
name = "ttf-tw-moe";
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
2020-11-30 08:33:03 +00:00
|
|
|
unzip -j $downloadedFile TW-fonts-${version}/\*.ttf -d $out/share/fonts/truetype
|
2020-11-06 00:33:48 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "1jd3gjjfa4vadp6d499n0irz5b22z611kd7q5qgqf6s2fwbxfhiz";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-06 00:33:48 +00:00
|
|
|
homepage = "http://www.moe.gov.tw/";
|
|
|
|
description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = version;
|
2020-11-06 00:33:48 +00:00
|
|
|
longDescription = ''
|
|
|
|
Installs 2 TTF fonts: MOESongUN and TW-MOE-Std-Kai.
|
|
|
|
Both are provided by the Ministry of Education of Taiwan; each character's shape
|
|
|
|
closely follows the official recommendation, and can be used as for teaching purposes.
|
|
|
|
'';
|
|
|
|
license = licenses.cc-by-nd-30;
|
|
|
|
maintainers = [ maintainers.jiehong ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|