Use of ~/.fonts is deprecated and may not even work on some distributions (for example NixOS), see /etc/fonts/fonts.conf on a Debian system:
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
Use of
~/.fonts
is deprecated and may not even work on some distributions (for example NixOS), see/etc/fonts/fonts.conf
on a Debian system: