123.11. noto-fonts-extra-1
Noto Sans coverage for Arabic, Hebrew, Indic, Sinhala, Thai, Lao, Khmer, Myanmar, Ethiopic, Georgian and Armenian
| Version | 1, release 1 |
| Shelf | fonts — Font packages, and font libraries and tooling |
| Phase | 41_system (System), 533 of 1047 in build order |
| Licence | OFL-1.1 |
| Homepage | https://notofonts.github.io/ |
| Build time | 0.4 SBU |
| Installed size | 12.5 MiB in 112 files |
| Recipe | ports/core/fonts/noto-fonts-extra/kpkgbuild |
About
noto-fonts-extra is the Noto Sans faces for the scripts noto-fonts does not cover: Arabic, Hebrew, Armenian, Georgian, the Indic scripts, Sinhala, Thai, Lao, Khmer, Myanmar and Ethiopic. Without them a script that no other installed face covers renders as empty boxes. Chinese, Japanese and Korean are noto-cjk’s.
Why it is in KDOS
The comment above it in script/phases/41_system/packages.d/fonts.txt:
The scripts noto-fonts itself does not carry: its sources are Latin, Greek and Cyrillic, so Thai, Devanagari, Bengali, Tamil, Telugu, Gujarati, Hebrew, Arabic, Khmer and Ethiopic all render as tofu without this. CJK is NOT here — noto-cjk already ships the same 112 MB asset, and two packages owning one file is a conflict at install time.
Sources
noto-fonts-extra-arabic-2.013.zip(17.9 MiB)
sha2561301aceaea84c501cf2e6dcfb3182e2328c8eae5725817fcb239672bda7154f1
upstream: https://github.com/notofonts/arabic/releases/download/NotoSansArabic-v2.013/NotoSansArabic-v2.013.zip
archive copy: sources-2/fonts--noto-fonts-extra-arabic-2.013.zipnoto-fonts-extra-bengali-3.011.zip(13.5 MiB)
sha2562aca24bf71665e66c32e14862ee58857dd8b8b07b6321ec7c96f3121ad6683b1
upstream: https://github.com/notofonts/bengali/releases/download/NotoSansBengali-v3.011/NotoSansBengali-v3.011.zip
archive copy: sources-2/fonts--noto-fonts-extra-bengali-3.011.zipnoto-fonts-extra-devanagari-2.007.zip(17.6 MiB)
sha256820c7da45b1e63562cb41c0a8cac5d9a4202312043a3a040ed1325857ef469b1
upstream: https://github.com/notofonts/devanagari/releases/download/NotoSansDevanagari-v2.007/NotoSansDevanagari-v2.007.zip
archive copy: sources-2/fonts--noto-fonts-extra-devanagari-2.007.zipnoto-fonts-extra-ethiopic-2.102.zip(28.6 MiB)
sha2564e3e53aa1586344ba842f310ab35c65281fa11e8cc2d259613ad06a9ae994d52
upstream: https://github.com/notofonts/ethiopic/releases/download/NotoSansEthiopic-v2.102/NotoSansEthiopic-v2.102.zip
archive copy: sources-2/fonts--noto-fonts-extra-ethiopic-2.102.zipnoto-fonts-extra-gujarati-2.106.zip(28.9 MiB)
sha256a4ff1dd03a4998ba08ee7ee43be2aca7594a884982049e48c25ccc48991474ed
upstream: https://github.com/notofonts/gujarati/releases/download/NotoSansGujarati-v2.106/NotoSansGujarati-v2.106.zip
archive copy: sources-2/fonts--noto-fonts-extra-gujarati-2.106.zipnoto-fonts-extra-hebrew-3.001.zip(3.6 MiB)
sha256df0a71814b4e63644cf40fcc4529111b61266b7a2dafbe95068b29a7520cc3cb
upstream: https://github.com/notofonts/hebrew/releases/download/NotoSansHebrew-v3.001/NotoSansHebrew-v3.001.zip
archive copy: sources-2/fonts--noto-fonts-extra-hebrew-3.001.zipnoto-fonts-extra-khmer-2.004.zip(8.5 MiB)
sha25619382ca97d62febea1c735ebee35a5aa4f03beca9b6ea6f6d86b7a7a0025a688
upstream: https://github.com/notofonts/khmer/releases/download/NotoSansKhmer-v2.004/NotoSansKhmer-v2.004.zip
archive copy: sources-2/fonts--noto-fonts-extra-khmer-2.004.zipnoto-fonts-extra-tamil-2.004.zip(14.5 MiB)
sha256f8284e0f200a7f29a439b4ec88280d864b2b31f8479111c5b658ba6da38b3005
upstream: https://github.com/notofonts/tamil/releases/download/NotoSansTamil-v2.004/NotoSansTamil-v2.004.zip
archive copy: sources-2/fonts--noto-fonts-extra-tamil-2.004.zipnoto-fonts-extra-telugu-2.005.zip(33.1 MiB)
sha2563553e00ca341dc06f4a143c604dd93a1342553169b5a06dc8b0ff50ab6eba0a2
upstream: https://github.com/notofonts/telugu/releases/download/NotoSansTelugu-v2.005/NotoSansTelugu-v2.005.zip
archive copy: sources-2/fonts--noto-fonts-extra-telugu-2.005.zipnoto-fonts-extra-thai-2.002.zip(4.5 MiB)
sha256af889cc673fc714060ce5e4e088fbad32aa4c0571a19958efeaff128a22da485
upstream: https://github.com/notofonts/thai/releases/download/NotoSansThai-v2.002/NotoSansThai-v2.002.zip
archive copy: sources-2/fonts--noto-fonts-extra-thai-2.002.zipnoto-fonts-extra-armenian-2.008.zip(4.3 MiB)
sha256eab89b99e134177ca6a3f9f0412a7cb812aafceb13175d686b4c45cb237f64ac
upstream: https://github.com/notofonts/armenian/releases/download/NotoSansArmenian-v2.008/NotoSansArmenian-v2.008.zip
archive copy: sources-2/fonts--noto-fonts-extra-armenian-2.008.zipnoto-fonts-extra-georgian-2.005.zip(6.4 MiB)
sha25610e85011008108308e6feab0408242acb07804da61ede3d3ff236461ae07ab1b
upstream: https://github.com/notofonts/georgian/releases/download/NotoSansGeorgian-v2.005/NotoSansGeorgian-v2.005.zip
archive copy: sources-2/fonts--noto-fonts-extra-georgian-2.005.zipnoto-fonts-extra-gurmukhi-2.004.zip(12.0 MiB)
sha256a55ee5ee831ce3a4bb73bdc46bd0a02db6eb9445c370a0afbc529379ed8cea52
upstream: https://github.com/notofonts/gurmukhi/releases/download/NotoSansGurmukhi-v2.004/NotoSansGurmukhi-v2.004.zip
archive copy: sources-2/fonts--noto-fonts-extra-gurmukhi-2.004.zipnoto-fonts-extra-kannada-2.006.zip(26.5 MiB)
sha256902b1b92018f7c96862d68d0a39ef03b978203cd4c3f55d6760f597657b51c44
upstream: https://github.com/notofonts/kannada/releases/download/NotoSansKannada-v2.006/NotoSansKannada-v2.006.zip
archive copy: sources-2/fonts--noto-fonts-extra-kannada-2.006.zipnoto-fonts-extra-lao-2.003.zip(4.6 MiB)
sha2565a87c31b1a40ef8147c1e84437e5f0ceba2d4dbbfc0b56a65821ad29870da8c0
upstream: https://github.com/notofonts/lao/releases/download/NotoSansLao-v2.003/NotoSansLao-v2.003.zip
archive copy: sources-2/fonts--noto-fonts-extra-lao-2.003.zipnoto-fonts-extra-malayalam-2.104.zip(20.5 MiB)
sha2562ebd31e79f2893025d659def7784e0ec3557e7ff9ac105adcc82d35782913bf2
upstream: https://github.com/notofonts/malayalam/releases/download/NotoSansMalayalam-v2.104/NotoSansMalayalam-v2.104.zip
archive copy: sources-2/fonts--noto-fonts-extra-malayalam-2.104.zipnoto-fonts-extra-myanmar-2.107.zip(18.7 MiB)
sha256c4995ee97f1f267b46cf83734dbf18a3cfd431e387b6fe38e90279546f260c4b
upstream: https://github.com/notofonts/myanmar/releases/download/NotoSansMyanmar-v2.107/NotoSansMyanmar-v2.107.zip
archive copy: sources-2/fonts--noto-fonts-extra-myanmar-2.107.zipnoto-fonts-extra-oriya-2.007.zip(5.2 MiB)
sha256025b637e2d391f422ae12f4eb365876ce3b195283025ababb74ecf6baae35442
upstream: https://github.com/notofonts/oriya/releases/download/NotoSansOriya-v2.007/NotoSansOriya-v2.007.zip
archive copy: sources-2/fonts--noto-fonts-extra-oriya-2.007.zipnoto-fonts-extra-sinhala-3.000.zip(4.1 MiB)
sha25625b2c787e0b34b82ccedce026e6519cc535394a6bd8520d5a1df45c233807d8a
upstream: https://github.com/notofonts/sinhala/releases/download/NotoSansSinhala-v3.000/NotoSansSinhala-v3.000.zip
archive copy: sources-2/fonts--noto-fonts-extra-sinhala-3.000.zip
Dependencies
Depends on: unzip, fontconfig.
Required by: no port names it.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install noto-fonts-extra'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/fonts/noto-fonts-extra.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/fonts/noto-fonts-extra
echo '1301aceaea84c501cf2e6dcfb3182e2328c8eae5725817fcb239672bda7154f1 noto-fonts-extra-arabic-2.013.zip' | sha256sum -c -
echo '2aca24bf71665e66c32e14862ee58857dd8b8b07b6321ec7c96f3121ad6683b1 noto-fonts-extra-bengali-3.011.zip' | sha256sum -c -
echo '820c7da45b1e63562cb41c0a8cac5d9a4202312043a3a040ed1325857ef469b1 noto-fonts-extra-devanagari-2.007.zip' | sha256sum -c -
echo '4e3e53aa1586344ba842f310ab35c65281fa11e8cc2d259613ad06a9ae994d52 noto-fonts-extra-ethiopic-2.102.zip' | sha256sum -c -
echo 'a4ff1dd03a4998ba08ee7ee43be2aca7594a884982049e48c25ccc48991474ed noto-fonts-extra-gujarati-2.106.zip' | sha256sum -c -
echo 'df0a71814b4e63644cf40fcc4529111b61266b7a2dafbe95068b29a7520cc3cb noto-fonts-extra-hebrew-3.001.zip' | sha256sum -c -
echo '19382ca97d62febea1c735ebee35a5aa4f03beca9b6ea6f6d86b7a7a0025a688 noto-fonts-extra-khmer-2.004.zip' | sha256sum -c -
echo 'f8284e0f200a7f29a439b4ec88280d864b2b31f8479111c5b658ba6da38b3005 noto-fonts-extra-tamil-2.004.zip' | sha256sum -c -
echo '3553e00ca341dc06f4a143c604dd93a1342553169b5a06dc8b0ff50ab6eba0a2 noto-fonts-extra-telugu-2.005.zip' | sha256sum -c -
echo 'af889cc673fc714060ce5e4e088fbad32aa4c0571a19958efeaff128a22da485 noto-fonts-extra-thai-2.002.zip' | sha256sum -c -
echo 'eab89b99e134177ca6a3f9f0412a7cb812aafceb13175d686b4c45cb237f64ac noto-fonts-extra-armenian-2.008.zip' | sha256sum -c -
echo '10e85011008108308e6feab0408242acb07804da61ede3d3ff236461ae07ab1b noto-fonts-extra-georgian-2.005.zip' | sha256sum -c -
echo 'a55ee5ee831ce3a4bb73bdc46bd0a02db6eb9445c370a0afbc529379ed8cea52 noto-fonts-extra-gurmukhi-2.004.zip' | sha256sum -c -
echo '902b1b92018f7c96862d68d0a39ef03b978203cd4c3f55d6760f597657b51c44 noto-fonts-extra-kannada-2.006.zip' | sha256sum -c -
echo '5a87c31b1a40ef8147c1e84437e5f0ceba2d4dbbfc0b56a65821ad29870da8c0 noto-fonts-extra-lao-2.003.zip' | sha256sum -c -
echo '2ebd31e79f2893025d659def7784e0ec3557e7ff9ac105adcc82d35782913bf2 noto-fonts-extra-malayalam-2.104.zip' | sha256sum -c -
echo 'c4995ee97f1f267b46cf83734dbf18a3cfd431e387b6fe38e90279546f260c4b noto-fonts-extra-myanmar-2.107.zip' | sha256sum -c -
echo '025b637e2d391f422ae12f4eb365876ce3b195283025ababb74ecf6baae35442 noto-fonts-extra-oriya-2.007.zip' | sha256sum -c -
echo '25b2c787e0b34b82ccedce026e6519cc535394a6bd8520d5a1df45c233807d8a noto-fonts-extra-sinhala-3.000.zip' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/noto-fonts-extra
SRC=$SRC_ROOT/noto-fonts-extra-1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
cp noto-fonts-extra-arabic-2.013.zip "$SRC"
cp noto-fonts-extra-bengali-3.011.zip "$SRC"
cp noto-fonts-extra-devanagari-2.007.zip "$SRC"
cp noto-fonts-extra-ethiopic-2.102.zip "$SRC"
cp noto-fonts-extra-gujarati-2.106.zip "$SRC"
cp noto-fonts-extra-hebrew-3.001.zip "$SRC"
cp noto-fonts-extra-khmer-2.004.zip "$SRC"
cp noto-fonts-extra-tamil-2.004.zip "$SRC"
cp noto-fonts-extra-telugu-2.005.zip "$SRC"
cp noto-fonts-extra-thai-2.002.zip "$SRC"
cp noto-fonts-extra-armenian-2.008.zip "$SRC"
cp noto-fonts-extra-georgian-2.005.zip "$SRC"
cp noto-fonts-extra-gurmukhi-2.004.zip "$SRC"
cp noto-fonts-extra-kannada-2.006.zip "$SRC"
cp noto-fonts-extra-lao-2.003.zip "$SRC"
cp noto-fonts-extra-malayalam-2.104.zip "$SRC"
cp noto-fonts-extra-myanmar-2.107.zip "$SRC"
cp noto-fonts-extra-oriya-2.007.zip "$SRC"
cp noto-fonts-extra-sinhala-3.000.zip "$SRC"
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers _arab, _armn, _beng, _deva, _ethi, _geor, _gujr, _guru, _hebr, _knda, _khmr, _laoo, _mlym, _mymr, _orya, _sinh, _taml, _telu, _thai and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
install -dm755 $PKG/usr/share/fonts/noto
install -dm755 $PKG/usr/share/licenses/$name
all="Regular Light Medium SemiBold Bold"
for entry in \
"$name-arabic-$_arab.zip:NotoSansArabic:$all" \
"$name-armenian-$_armn.zip:NotoSansArmenian:$all" \
"$name-bengali-$_beng.zip:NotoSansBengali:$all" \
"$name-devanagari-$_deva.zip:NotoSansDevanagari:$all" \
"$name-ethiopic-$_ethi.zip:NotoSansEthiopic:$all" \
"$name-georgian-$_geor.zip:NotoSansGeorgian:$all" \
"$name-gujarati-$_gujr.zip:NotoSansGujarati:$all" \
"$name-gurmukhi-$_guru.zip:NotoSansGurmukhi:$all" \
"$name-hebrew-$_hebr.zip:NotoSansHebrew:$all" \
"$name-kannada-$_knda.zip:NotoSansKannada:$all" \
"$name-khmer-$_khmr.zip:NotoSansKhmer:$all" \
"$name-lao-$_laoo.zip:NotoSansLao:$all" \
"$name-malayalam-$_mlym.zip:NotoSansMalayalam:$all" \
"$name-myanmar-$_mymr.zip:NotoSansMyanmar:$all" \
"$name-oriya-$_orya.zip:NotoSansOriya:Regular Bold" \
"$name-sinhala-$_sinh.zip:NotoSansSinhala:$all" \
"$name-tamil-$_taml.zip:NotoSansTamil:$all" \
"$name-telugu-$_telu.zip:NotoSansTelugu:$all" \
"$name-thai-$_thai.zip:NotoSansThai:$all"
do
zip=${entry%%:*}
rest=${entry#*:}
fam=${rest%%:*}
weights=${rest#*:}
unzip -q -o "$zip" -d "$fam"
for w in $weights; do
install -m644 "$fam/$fam/hinted/ttf/$fam-$w.ttf" \
$PKG/usr/share/fonts/noto/
done
install -m644 "$fam/OFL.txt" \
$PKG/usr/share/licenses/$name/$fam-OFL.txt
done
install -dm755 $PKG/etc/fonts/conf.d
cat > $PKG/etc/fonts/conf.d/56-noto-scripts.conf <<'XML'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans Arabic</family>
<family>Noto Sans Hebrew</family>
<family>Noto Sans Armenian</family>
<family>Noto Sans Georgian</family>
<family>Noto Sans Devanagari</family>
<family>Noto Sans Bengali</family>
<family>Noto Sans Tamil</family>
<family>Noto Sans Telugu</family>
<family>Noto Sans Gujarati</family>
<family>Noto Sans Kannada</family>
<family>Noto Sans Malayalam</family>
<family>Noto Sans Oriya</family>
<family>Noto Sans Thai</family>
<family>Noto Sans Lao</family>
<family>Noto Sans Khmer</family>
<family>Noto Sans Myanmar</family>
<family>Noto Sans Ethiopic</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Sans Arabic</family>
<family>Noto Sans Hebrew</family>
<family>Noto Sans Armenian</family>
<family>Noto Sans Georgian</family>
<family>Noto Sans Devanagari</family>
<family>Noto Sans Bengali</family>
<family>Noto Sans Tamil</family>
<family>Noto Sans Telugu</family>
<family>Noto Sans Gujarati</family>
<family>Noto Sans Kannada</family>
<family>Noto Sans Malayalam</family>
<family>Noto Sans Oriya</family>
<family>Noto Sans Thai</family>
<family>Noto Sans Lao</family>
<family>Noto Sans Khmer</family>
<family>Noto Sans Myanmar</family>
<family>Noto Sans Ethiopic</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Sans Arabic</family>
<family>Noto Sans Hebrew</family>
<family>Noto Sans Armenian</family>
<family>Noto Sans Georgian</family>
<family>Noto Sans Devanagari</family>
<family>Noto Sans Bengali</family>
<family>Noto Sans Tamil</family>
<family>Noto Sans Telugu</family>
<family>Noto Sans Gujarati</family>
<family>Noto Sans Kannada</family>
<family>Noto Sans Malayalam</family>
<family>Noto Sans Oriya</family>
<family>Noto Sans Thai</family>
<family>Noto Sans Lao</family>
<family>Noto Sans Khmer</family>
<family>Noto Sans Myanmar</family>
<family>Noto Sans Ethiopic</family>
</prefer>
</alias>
</fontconfig>
XML
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/noto-fonts-extra, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf noto-fonts-extra-1-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/noto-fonts-extra, and runs the triggers its paths call for.
Contents
Installed directories: /usr/share/licenses/noto-fonts-extra.
Notes
Noto publishes each script from its own repository with its own version, so the recipe’s version is a meta-version and each face is pinned in a helper of its own (_arab, _beng and the rest), which its source and sha256 = lines read. ports/update looks at notofonts/arabic, whose newest tag can be a Noto Naskh Arabic release with no Noto Sans Arabic asset, so it may offer an upgrade this port must not take; bump the helpers by hand.
build.sh unzips each archive into a directory named after its family and installs the hinted TTFs of the weights its list names: Regular, Light, Medium, SemiBold and Bold, except Oriya, whose release has no Light, Medium or SemiBold.
56-noto-scripts.conf sorts between 56-noto-preferred.conf and the 57-dejavu-*.conf files, so these faces come before DejaVu, which also claims Arabic, Hebrew, Armenian, Georgian and Lao. A face is named in its lists only if it carries no symbol or Latin coverage that would take the place of the default faces: Gurmukhi and Sinhala are installed but not listed, and no CJK face is ever named there.