# HG changeset patch # User Aleksej Bobylev # Date 1468172796 -10800 # Node ID 03550e87324e37167bef7b43b37bc96ff6d8acfc # Parent c460585add2aaa294faccb99a0186dd4713c45cb Add Noto fonts: noto-sans, noto-serif, noto-mono diff -r c460585add2a -r 03550e87324e noto-mono/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-mono/description.txt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,14 @@ +Beautiful and free fonts for all languages + +When text is rendered by a computer, sometimes characters are displayed as +“tofu”. They are little boxes to indicate your device doesn’t have a font to +display the text. + +Google has been developing a font family called Noto, which aims to support all +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The +name noto is to convey the idea that Google’s goal is to see “**no** more +**to**fu”. Noto has multiple styles and weights, and freely available to all. +The comprehensive set of fonts and tools used in our development are available +in our [GitHub repositories](https://github.com/googlei18n?query=noto). + +All Noto fonts are now licensed under OFL. diff -r c460585add2a -r 03550e87324e noto-mono/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-mono/receipt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="noto-mono" +VERSION="1.00" +COMMIT="5329592" +CATEGORY="fonts" +SHORT_DESC="Noto Mono TrueType font" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="OFL" +WEB_SITE="http://www.google.com/get/noto/" +TAGS="font" + +# Rules to configure and make the package. +compile_rules() +{ + # The Noto font web site don't provides downloads of "Noto Mono". + + # Github project provides versioned downloads, but only in form of + # "all in one" huge file. + + # Solution: download individual versioned font files from Github project. + # This commit "5329592" introduced "NotoMono-*" font version "1.00": + # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c + + mkdir -p $src + for font in Regular; do + get_file="NotoMono-$font.ttf" + save_file="NotoMono-$font-$VERSION.ttf" + url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" + [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url + [ -e "$SRC/$save_file" ] || exit 1 + cp "$SRC/$save_file" "$src/$get_file" + done + + f=$install/usr/share/fonts/truetype/noto + mkdir -p $f + cp -a $src/*.ttf $f +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.ttf +} diff -r c460585add2a -r 03550e87324e noto-sans/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-sans/description.txt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,14 @@ +Beautiful and free fonts for all languages + +When text is rendered by a computer, sometimes characters are displayed as +“tofu”. They are little boxes to indicate your device doesn’t have a font to +display the text. + +Google has been developing a font family called Noto, which aims to support all +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The +name noto is to convey the idea that Google’s goal is to see “**no** more +**to**fu”. Noto has multiple styles and weights, and freely available to all. +The comprehensive set of fonts and tools used in our development are available +in our [GitHub repositories](https://github.com/googlei18n?query=noto). + +All Noto fonts are now licensed under OFL. diff -r c460585add2a -r 03550e87324e noto-sans/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-sans/receipt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="noto-sans" +VERSION="1.06" +COMMIT="ad153f5" +CATEGORY="fonts" +SHORT_DESC="Noto Sans TrueType fonts" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="OFL" +WEB_SITE="http://www.google.com/get/noto/" +TAGS="font" + +SIBLINGS="noto-serif" + +# Rules to configure and make the package. +compile_rules() +{ + # The Noto font web site provides downloads: + # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip + # But these files are not versioned, so we never know which version we are + # currently to package. + + # In other hand, Github project provides versioned downloads, but only in + # form of "all in one" huge file. + + # Solution: download individual versioned font files from Github project. + # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06": + # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21 + + mkdir -p $src + for font in Regular Bold Italic BoldItalic; do + get_file="NotoSans-$font.ttf" + save_file="NotoSans-$font-$VERSION.ttf" + url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" + [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url + [ -e "$SRC/$save_file" ] || exit 1 + cp "$SRC/$save_file" "$src/$get_file" + done + + # Install + + f=$install/usr/share/fonts/truetype/noto + mkdir -p $f + cp -a $src/*.ttf $f +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.ttf +} diff -r c460585add2a -r 03550e87324e noto-serif/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-serif/description.txt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,14 @@ +Beautiful and free fonts for all languages + +When text is rendered by a computer, sometimes characters are displayed as +“tofu”. They are little boxes to indicate your device doesn’t have a font to +display the text. + +Google has been developing a font family called Noto, which aims to support all +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The +name noto is to convey the idea that Google’s goal is to see “**no** more +**to**fu”. Noto has multiple styles and weights, and freely available to all. +The comprehensive set of fonts and tools used in our development are available +in our [GitHub repositories](https://github.com/googlei18n?query=noto). + +All Noto fonts are now licensed under OFL. diff -r c460585add2a -r 03550e87324e noto-serif/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noto-serif/receipt Sun Jul 10 20:46:36 2016 +0300 @@ -0,0 +1,52 @@ +# SliTaz package receipt. + +PACKAGE="noto-serif" +VERSION="1.06" +COMMIT="0af3d5f" +CATEGORY="fonts" +SHORT_DESC="Noto Serif TrueType fonts" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="OFL" +WEB_SITE="http://www.google.com/get/noto/" +TAGS="font" + +SIBLINGS="noto-serif" + +# Rules to configure and make the package. +compile_rules() +{ + # The Noto font web site provides downloads: + # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip + # But these files are not versioned, so we never know which version we are + # currently to package. + + # In other hand, Github project provides versioned downloads, but only in + # form of "all in one" huge file. + + # Solution: download individual versioned font files from Github project. + # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06" + # (NotoSerif-Italic was bumped to 1.07): + # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f + + mkdir -p $src + for variant in Regular Bold Italic BoldItalic; do + get_file="NotoSerif-$variant.ttf" + save_file="NotoSerif-$variant-$VERSION.ttf" + url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" + [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url + [ -e "$SRC/$save_file" ] || exit 1 + cp "$SRC/$save_file" "$src/$get_file" + done + + # Install + + f=$install/usr/share/fonts/truetype/noto + mkdir -p $f + cp -a $src/*.ttf $f +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.ttf +}