Created
June 29, 2019 07:14
-
-
Save charveey/091b11ea554436d15c7fffcf01129a8a to your computer and use it in GitHub Desktop.
How to better enable Color Emojis! Fontconfig ships with some config files that are simply not enough to enable color emojis globally (the 45-generic.conf and 60-generic.conf) and just by installing Noto Color Emoji font will also not enable colorful emojis on all websites or some apps. However, this can easily be configured by creating a config…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- Add generic family. --> | |
<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> | |
<!-- This adds Noto Color Emoji as a final fallback font for the default font families. --> | |
<match target="pattern"> | |
<test name="family"><string>sans</string></test> | |
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>serif</string></test> | |
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>sans-serif</string></test> | |
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>monospace</string></test> | |
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit> | |
</match> | |
<!-- Block Symbola from the list of fallback fonts. --> | |
<selectfont> | |
<rejectfont> | |
<pattern> | |
<patelt name="family"> | |
<string>Symbola</string> | |
</patelt> | |
</pattern> | |
</rejectfont> | |
</selectfont> | |
<!-- Use Noto Color Emoji when other popular fonts are being specifically requested. --> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>Apple Color Emoji</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color 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>Noto Color 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>Noto Color 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>Noto Color 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>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>Twemoji</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color 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>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>TwemojiMozilla</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>EmojiTwo</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color 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>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>EmojiSymbols</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>Symbola</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit> | |
</match> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="rgba"> | |
<const>rgb</const> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="hinting"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="hintstyle"> | |
<const>hintfull</const> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="antialias"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit mode="assign" name="lcdfilter"> | |
<const>lcddefault</const> | |
</edit> | |
</match> | |
<match target="font"> | |
<edit name="autohint" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit name="family" mode="prepend"> | |
<string>Noto Color Emoji</string> | |
</edit> | |
</match> | |
</fontconfig> |
Author
charveey
commented
Jul 2, 2024
via email
It's been a while since I wrote this but I think the reason behind this
choice is that some emoji glyphs are present in non-emoji fonts.
Ange Kevin Amlaman
…On Sat, Jun 29, 2024, 6:31 AM varvir ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
<match target="pattern">
<edit name="family" mode="prepend">
<string>Noto Color Emoji</string>
</edit>
</match>
This part makes Noto Color Emoji supersedes all Fonts.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/charveey/091b11ea554436d15c7fffcf01129a8a#gistcomment-5105686>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHWI5CNB7C73UDWRH63ZEI3ZJZIEJBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4TMOJXHE3TQONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment