summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbadatnames2019-11-30 22:30:21 +0100
committerbadatnames2019-11-30 22:30:21 +0100
commit2b5cd5c7ef9f495502215179b6c01fd5384834d9 (patch)
treeb15c6966209d6ad0fdae4c1ee0699431955bdb5a
downloadaur-2b5cd5c7ef9f495502215179b6c01fd5384834d9.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--75-mutant-standard-emoji.conf172
-rw-r--r--PKGBUILD25
-rw-r--r--ttf-mutant-emoji.install12
4 files changed, 226 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1050f166f0d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ttf-mutant-emoji
+ pkgdesc = A new kind of emoji set - more flexible, inclusive and fun!
+ pkgver = 0.4.1
+ pkgrel = 1
+ url = https://mutant.tech
+ install = ttf-mutant-emoji.install
+ arch = any
+ license = custom:CC BY-NC-SA 4.0
+ depends = fontconfig
+ provides = emoji-font
+ source = https://mutant.tech/dl/0.4.1/mtnt_0.4.1_font_sbixot.zip
+ source = 75-mutant-standard-emoji.conf
+ md5sums = bd4e25c08904f283a1a18aa21e7a82e1
+ md5sums = 609aaef8b63b3193bc02440307a0a4f3
+
+pkgname = ttf-mutant-emoji
+
diff --git a/75-mutant-standard-emoji.conf b/75-mutant-standard-emoji.conf
new file mode 100644
index 00000000000..32cd48c9c84
--- /dev/null
+++ b/75-mutant-standard-emoji.conf
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <!-- This file is a copy of the fontconfig file for the ttf-joypixels package after running sed "s/JoyPixels/Mutant Standard Emoji/" on it -->
+
+ <!--
+ Treat this file as a reference and modify as necessary if you are not satisfied with the results.
+
+
+ This config attempts to guarantee that colorful emojis from Mutant Standard Emoji will be displayed,
+ no matter how badly the apps and websites are written.
+
+ It uses a few different tricks, some of which introduce conflicts with other fonts.
+ -->
+
+
+ <!--
+ This adds a generic famil
+ y 'emoji',
+ aimed for apps that don't specify specific font family for rendering emojis.
+ -->
+ <match target="pattern">
+ <test qual="any" name="family"><string>emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <!--
+ This adds Mutant Standard Emoji as a final fallback font for the default font families.
+ In this case, Mutant Standard Emoji will be selected if and only if no other font can provide a given symbol.
+
+ Note, usually other fonts will have some glyphs available (especilly Symbola font),
+ causing some emojis to be black&white and ugly.
+ -->
+ <match target="pattern">
+ <test name="family"><string>sans</string></test>
+ <edit name="family" mode="append"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>serif</string></test>
+ <edit name="family" mode="append"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>sans-serif</string></test>
+ <edit name="family" mode="append"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>monospace</string></test>
+ <edit name="family" mode="append"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <!--
+ It seems Symbola is often selected as a fallback font before Mutant Standard Emoji.
+ This will try to remove Symbola from the list of fallback fonts.
+ -->
+ <selectfont>
+ <rejectfont>
+ <pattern>
+ <patelt name="family">
+ <string>Symbola</string>
+ </patelt>
+ </pattern>
+ </rejectfont>
+ </selectfont>
+
+ <!--
+ Recognize alternative ways of writing Mutant Standard Emoji family name.
+ -->
+ <match target="pattern">
+ <test qual="any" name="family"><string>EmojiOne</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Emoji One</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>EmojiOne Color</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>EmojiOne Mozilla</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <!--
+ Use Mutant Standard Emoji when other popular fonts are being specifically requested.
+
+ It is quite common that websites would only request Apple and Google emoji fonts, and then fallback to b&w Symbola.
+ These aliases will make Mutant Standard Emoji be selected in such cases to provide good-looking emojis.
+ -->
+ <match target="pattern">
+ <test qual="any" name="family"><string>Apple Color Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Segoe UI Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Segoe UI Symbol</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Noto Color Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>NotoColorEmoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Android Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Noto Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Twitter Color Emoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Twemoji</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Twemoji Mozilla</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>TwemojiMozilla</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>EmojiTwo</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Emoji Two</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>EmojiSymbols</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test qual="any" name="family"><string>Symbola</string></test>
+ <edit name="family" mode="assign" binding="same"><string>Mutant Standard Emoji</string></edit>
+ </match>
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..40a24f511a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: BadAtNames <badatnames@tutanota.com>
+pkgname=ttf-mutant-emoji
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="A new kind of emoji set - more flexible, inclusive and fun!"
+arch=('any')
+url="https://mutant.tech"
+license=('custom:CC BY-NC-SA 4.0')
+provides=('emoji-font')
+depends=('fontconfig')
+install="${pkgname}.install"
+source=(
+ "${url}/dl/${pkgver}/mtnt_${pkgver}_font_sbixot.zip"
+ '75-mutant-standard-emoji.conf'
+)
+
+package() {
+ install -Dm644 -t "${pkgdir}/etc/fonts/conf.avail" 75-mutant-standard-emoji.conf
+
+ cd mtnt_${pkgver}_font_sbixot
+ install -Dm644 font/MutantStandardEmoji-sbixOT.ttf "${pkgdir}/usr/share/fonts/TTF/Mutant.ttf"
+ install -Dm644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+md5sums=('bd4e25c08904f283a1a18aa21e7a82e1'
+ '609aaef8b63b3193bc02440307a0a4f3')
diff --git a/ttf-mutant-emoji.install b/ttf-mutant-emoji.install
new file mode 100644
index 00000000000..02fe9df39eb
--- /dev/null
+++ b/ttf-mutant-emoji.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo
+ echo " See /etc/fonts/conf.avail/75-mutant-standard-emoji.conf for how to enforce rendering emojis via JoyPixels"
+ echo " It conflicts with other fonts, so either symlink it to /etc/fonts/conf.d/ or copy and modify as needed."
+ echo
+}
+
+post_remove() {
+ echo
+ echo " Make sure to remove /etc/fonts/conf.d/75-mutant-standard-emoji.conf if you created it earlier"
+ echo
+}