-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Noto Font を入れておけば絵文字の表示自体はできるのだけど、
ものによってカラーにならないことがある。
解決策は色々ありそうだけど、 一つの方法として Joypixel (旧 emojione-color )フォントを入れておくとよい
$ yay -S ttf-joypixels有効化
ただインストールするだけだといい感じに表示されない。
単純に有効化するには以下のようにすればよい
$ sudo ln -sv /etc/fonts/conf.avail/75-joypixels.conf /etc/fonts/conf.d/ただし、2019-11-29 時点の aur 上の ttf-joypixels の設定の場合、あらゆる絵文字フォントを joypixels に置き換えてしまい、Electron 製のアプリの UI がぶっ壊れることがある。
なので以下のようにして一部コメントアウトしたものをローカルの設定として有効にしておくのが安全。
$ mkdir -pv ~/.config/fontconfig/conf.d
$ cp /etc/fonts/conf.avail/75-joypixels.conf ~/.config/fontconfig/conf.d
$ vim ~/.config/fontconfig/conf.d/75-joypixels.conf~/.config/fontconfig/conf.d/75-joypixels.conf の Use JoyPixels when other popular fonts are being specifically requested. 部分をすべてコメントアウト(削除でもいいかも)。編集後のオリジナルとの差分は以下。
--- /etc/fonts/conf.avail/75-joypixels.conf 2019-11-21 17:24:53.000000000 +0900
+++ /home/iwasaki/.config/fontconfig/conf.d/75-joypixels.conf 2019-11-22 12:28:14.025721767 +0900
@@ -92,6 +92,7 @@
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 JoyPixels 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>JoyPixels</string></edit>
@@ -166,4 +167,5 @@
<test qual="any" name="family"><string>Symbola</string></test>
<edit name="family" mode="assign" binding="same"><string>JoyPixels</string></edit>
</match>
+ -->
</fontconfig>しあげ
$ fc-cache -vf