Switch to Liberation from DejaVu for better font-handling in Firefox
Test page: https://en.wikipedia.org/wiki/User:Kaldari/Font_test
Firefox defaults to the system defaults, so it's best to make the change at the system level than in Firefox preferences.
First, check current defaults
for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do
echo -n "$family: "
fc-match "$family"
done
See: https://jichu4n.com/posts/how-to-set-default-fonts-and-font-aliases-on-linux/
Then set your system defaults by creating ~/.config/fontsconfig/fonts.conf
and editing it.