249.4. noto-emoji-2.051
Noto Color Emoji — the desktop's colour emoji face
2.051-1 · OFL-1.1 · 46.1 SBU · 10.1 MiB, 4 files · 43_toolkits, 142 of 344 · ports/core/fonts/noto-emoji
Homepage: https://github.com/googlefonts/noto-emoji
Why it is in KDOS. The comment above it in script/phases/43_toolkits/packages.d/fonts.txt:
The colour emoji face, which the rest of the font configuration already assumes:
70-no-bitmaps-except-emojicarves bitmap fonts an exception BY FAMILY, and with no such family every emoji on the image is a blank box.
Depends on: python3, pkgconf, fonttools, imagemagick, cairo, pngquant, zopfli.
Required by (2): plasma-desktop, plasma-integration.
Sources: noto-emoji-2.051.tar.gz (200.5 MiB), notofonttools-0.4.1.tar.gz (9.4 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install noto-emoji'
build.sh:
rm -f fonts/*.ttf
nototools="$SRC_ROOT/notofonttools-$_nototools"
export PYTHONPATH="$nototools:$SRC/third_party/color_emoji"
make -j"$KDOS_JOBS" NotoColorEmoji.ttf \
VIRTUAL_ENV=/usr BYPASS_SEQUENCE_CHECK=True \
VS_ADDER="python3 $nototools/nototools/add_vs_cmap.py"
install -Dm644 NotoColorEmoji.ttf \
"$PKG/usr/share/fonts/noto-emoji/NotoColorEmoji.ttf"
install -Dm644 fonts/LICENSE "$PKG/usr/share/licenses/$name/LICENSE"
install -d "$PKG/usr/share/fontconfig/conf.avail"
cat > "$PKG/usr/share/fontconfig/conf.avail/45-noto-color-emoji.conf" <<'XML'
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias binding="same">
<family>emoji</family>
<accept><family>Noto Color Emoji</family></accept>
</alias>
<match target="pattern">
<test qual="any" name="family"><string>emoji</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
</match>
</fontconfig>
XML
install -d "$PKG/etc/fonts/conf.d"
ln -sf /usr/share/fontconfig/conf.avail/45-noto-color-emoji.conf \
"$PKG/etc/fonts/conf.d/45-noto-color-emoji.conf"
Directories: /usr/share/fonts/noto-emoji, /usr/share/licenses/noto-emoji.