fontconfig / xterm: add emoji fallbacks

This commit is contained in:
Lucas 2021-05-28 12:56:36 +00:00
parent 141a56f51b
commit 7110e32037
2 changed files with 36 additions and 5 deletions

View File

@ -33,11 +33,11 @@ XTerm.VT100.scrollBar: false
XTerm.VT100.scrollTtyOutput: false XTerm.VT100.scrollTtyOutput: false
XTerm.VT100.scrollKey: true XTerm.VT100.scrollKey: true
XTerm.VT100.font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 !XTerm.VT100.font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
XTerm.VT100.boldFont: -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1 !XTerm.VT100.boldFont: -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
XTerm.VT100.wideFont: -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 !XTerm.VT100.wideFont: -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
XTerm.VT100.faceName: monospace XTerm.VT100.faceName: monospace
XTerm.VT100.faceNameDoublesize: M+ 1m !XTerm.VT100.faceNameDoublesize: M+ 1m
XTerm.VT100.faceSize: 10.5 XTerm.VT100.faceSize: 10.5
XTerm.VT100.faceSize1: 6.0 XTerm.VT100.faceSize1: 6.0
XTerm.VT100.faceSize2: 8.0 XTerm.VT100.faceSize2: 8.0

View File

@ -1,6 +1,17 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- See LICENSE file for copyright and license details. --> <!--
env
Written in 2021 by Lucas
CC0 1.0 Universal/Public domain - No rights reserved
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warranty. You should have received a copy of the CC0 Public Domain
Dedication along with this software. If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
-->
<fontconfig> <fontconfig>
<!-- change default fonts --> <!-- change default fonts -->
<alias> <alias>
@ -25,6 +36,26 @@
</prefer> </prefer>
</alias> </alias>
<!-- Emoji fallback -->
<match>
<test name="family"><string>monospace</string></test>
<edit name="family" mode="prepend">
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend">
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>serif</string></test>
<edit name="family" mode="prepend">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- whitelist bitmaps font --> <!-- whitelist bitmaps font -->
<selectfont> <selectfont>
<acceptfont> <acceptfont>