aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-17 05:46:33 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-09-20 16:16:17 +0000
commitf3a0009d3c3d40a67563e561b2167b9a703dfb1a (patch)
tree6c66091bb17460a644f520513376eeaec9ef1f53 /recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend
parent9795294626b677a5331b97423d31bbab2bfc35aa (diff)
ttf-dejavu: remove emoji glyphs from dejavu fonts
Derivate of DejaVu without characters listed as emoji, in order not to override color fonts. Ref: https://aur.archlinux.org/packages/ttf-dejavu-emojiless/ Bug-AGL: SPEC-2701 Change-Id: I6e01b62ff8e4051a4bb4db81b1a0b4f22a4cc4ec Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> (cherry picked from commit 3757aec8c8d76a19f8083cb4542a6553adf01f00)
Diffstat (limited to 'recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend')
-rw-r--r--recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend b/recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend
new file mode 100644
index 000000000..bf79e949e
--- /dev/null
+++ b/recipes-graphics/ttf-fonts/ttf-dejavu_%.bbappend
@@ -0,0 +1,15 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+DEPENDS += "fontforge-native"
+
+# From the orginal work located at https://aur.archlinux.org/packages/ttf-dejavu-emojiless/
+
+SRC_URI_append = "\
+ file://cleaner.py \
+ file://emoji.json \
+ "
+
+do_install_prepend() {
+ for TTF in ${S}/*.ttf; do
+ fontforge -script ${WORKDIR}/cleaner.py ${TTF}
+ done
+}