I was trying to get install the Inter Font in Elementary OS. In the process, in order to get access to the fonts folder in usr/share, I used this command in the terminal,
sudo chmod 700 -R /usr/share/fonts
Now the fonts folder is broken and as a result, all the system fonts are displayed as rectangles. Luckily, I recognized Firefox from its icon, and now I'm using it to ask this question. I used that command to unlock the usr/share/backgrounds folder by following this tutorial https://askubuntu.com/a/263566, it worked for the backgrounds folder. The problem is that, I don't remember if I used 777 instead of 700 for the backgrounds folder.
Please help me to fix the fonts folder as it has made my only PC practically unusable.