Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
52
rated 0 times [  52] [ 0]  / answers: 1 / hits: 19213  / 2 Years ago, tue, april 19, 2022, 12:00:47

Recently, on my Ubuntu 18.04 I have noticed that at least on gnome-calculator and chromium browser the fonts are displayed as squares. I have followed instructions here and here, the calculator is fixed, but the problem on chromium still exists when I open a dialog to search for a file.



Not sure if this happens on other applications as well, I haven't checked all my apps, but File managers nemo and nautilus are working fine.



Also, before few months ago, I have included some windows fonts for my libre office shown here. I used the copy (cp) method, not the link (ln -s). But, was working fine until yesterday. Haven't done any major change or update, at least on my Linux partition (dual boot). But, I don't think that this has anything to do with that.



Any idea how can I fix this issue?



browse dialog.


More From » 18.04

 Answers
7

I found the solution, was more simple than I thought.



First, you need to update local cache as described here:



rm -rf ~/.cache/fontconfig 
sudo fc-cache -r -v


Then, you need to find fontconfig folder inside snap, since this is the snap version of chromium.



find ~/snap/chromium/ -name 'fontconfig'


Last, remove this folder inside .cache:



rm -rf ~/snap/chromium/common/.cache/fontconfig/


Afterwards, chromium will recreate this folder automatically by using your local updated fontconfig inside ~/.cache/fontconfig.



Restart chromium browser to take this effect.


[#3926] Tuesday, April 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
;