Type the following command:
$ doas pkg_add mplus-fonts
Type the following command:
$ doas pkg_add fcitx fcitx-configtool-qt fcitx-gtk fcitx-qt
Read /usr/local/share/doc/pkg-readmes/fcitx.Then type the following command:
$ doas pkg_add fcitx-anthy
$ doas pkg_add noto-cjk
Type the following command and add Anthy.
$ doas pkg_add fcitx-configtool
$ fcitx5-config-qt
Add the following lines in .xinitrc
# fcitx export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx /usr/local/bin/fcitx5 &