概要
~/.config/fontconfig/fonts.conf
(もしくは/etc/fonts/*
)でフォントの設定を行っている- 設定後に
fc-cache -fv
でフォントキャッシュを更新している ~/.config/i3/config
でfont pango: ~~~
を記述している~/.config/i3blocks/config
にmarkup=pango
を記述している
これらの設定に問題がないにも関わらず、絵文字が正しく表示されない。
原因はフォントのヒンティング設定が無効になっていたからでした。
設定方法
~/.config/fontconfig/fonts.conf
に次の記述を行います
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
(・・・その他の設定・・・)
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
</fontconfig>