Broken Font in Browsers
Tofloor
poster avatar
granwille
deepin
2020-05-08 03:25
Author
Hello

Previously I had WPS-Office 2019 installed to my Deepin 15.11 and was working fine. However, yesterday I uninstalled it and tried out LibreOffice instead. But I did not like it so I removed it and ran the following code:

- sudo apt remove --purge libre-office*

And thereafter I installed WPS Office 2019 again. However, ever since I did that, it now seems on ALL browsers (Chrome, Firefox, Brave and Opera) that my font is broken in certain text areas, here is a screenshot.

I have already tried making changes within the browser font settings and that does not work at all. I also played around on the Deepin font size settings too, and that did not help either. I believe during the uninstall of Libre Office I may have uninstalled system fonts needed. Because this makes no sense to why it is affecting ALL my browsers.

I really hope someone can assist me here, please?
Reply Favorite View the author
All Replies
1 / 2
To page
deepin
2020-05-08 04:11
#1
I have uploaded my font files in /usr/share/fonts. Although I am using the deepin Chinese version, it also contains some necessary English fonts for system and apps. You can backup your font floder and copy these files to /usr/share/fonts. Then you can type " fc-cache -fv" in your terminal and try to fix it. If it doesn't help, you can recover the fonts floder.

font files:
https://czhen.cowtransfer.com/s/afa27970678347
Reply View the author
granwille
deepin
2020-05-08 05:24
#2
https://bbs.deepin.org/post/193795
I have uploaded my font files in /usr/share/fonts. Although I am using the deepin Chinese version, i ...

Thank you, I am testing this. If this does not work, how would I restore the font folder? From a live running version?
Reply View the author
granwille
deepin
2020-05-08 06:05
#3
https://bbs.deepin.org/post/193795
Thank you, I am testing this. If this does not work, how would I restore the font folder? From a l ...

Unfortunately, this did not work, see what I did:

  1. granwile@granwille:~$ sudo rsync -a /home/granwile/Downloads/fonts/ /usr/share/fonts/
  2. [sudo] password for granwile:
  3. granwile@granwille:~$ sudo fc-cache -fv
  4. /usr/share/fonts: caching, new cache contents: 0 fonts, 10 dirs
  5. /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs
  6. /usr/share/fonts/X11/100dpi: caching, new cache contents: 358 fonts, 0 dirs
  7. /usr/share/fonts/X11/75dpi: caching, new cache contents: 358 fonts, 0 dirs
  8. /usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
  9. /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
  10. /usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
  11. /usr/share/fonts/X11/misc: caching, new cache contents: 59 fonts, 0 dirs
  12. /usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
  13. /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
  14. /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
  15. /usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
  16. /usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
  17. /usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs
  18. /usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
  19. /usr/share/fonts/deepin-font-install: caching, new cache contents: 0 fonts, 0 dirs
  20. /usr/share/fonts/eot: caching, new cache contents: 0 fonts, 1 dirs
  21. /usr/share/fonts/eot/font-awesome: caching, new cache contents: 0 fonts, 0 dirs
  22. /usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 16 dirs
  23. /usr/share/fonts/opentype/cabin: caching, new cache contents: 8 fonts, 0 dirs
  24. /usr/share/fonts/opentype/ebgaramond: caching, new cache contents: 10 fonts, 0 dirs
  25. /usr/share/fonts/opentype/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
  26. /usr/share/fonts/opentype/fonts-hosny-amiri: caching, new cache contents: 5 fonts, 0 dirs
  27. /usr/share/fonts/opentype/freefont: caching, new cache contents: 12 fonts, 0 dirs
  28. /usr/share/fonts/opentype/gentiumplus: caching, new cache contents: 4 fonts, 0 dirs
  29. /usr/share/fonts/opentype/ipaexfont-gothic: caching, new cache contents: 1 fonts, 0 dirs
  30. /usr/share/fonts/opentype/ipaexfont-mincho: caching, new cache contents: 1 fonts, 0 dirs
  31. /usr/share/fonts/opentype/ipafont-gothic: caching, new cache contents: 2 fonts, 0 dirs
  32. /usr/share/fonts/opentype/ipafont-mincho: caching, new cache contents: 2 fonts, 0 dirs
  33. /usr/share/fonts/opentype/linux-libertine: caching, new cache contents: 13 fonts, 0 dirs
  34. /usr/share/fonts/opentype/lobster: caching, new cache contents: 1 fonts, 0 dirs
  35. /usr/share/fonts/opentype/lobstertwo: caching, new cache contents: 4 fonts, 0 dirs
  36. /usr/share/fonts/opentype/noto: caching, new cache contents: 36 fonts, 0 dirs
  37. /usr/share/fonts/opentype/stix: caching, new cache contents: 29 fonts, 0 dirs
  38. /usr/share/fonts/opentype/stix-word: caching, new cache contents: 5 fonts, 0 dirs
  39. /usr/share/fonts/svg: caching, new cache contents: 0 fonts, 1 dirs
  40. /usr/share/fonts/svg/font-awesome: caching, new cache contents: 0 fonts, 0 dirs
  41. /usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 40 dirs
  42. /usr/share/fonts/truetype/adf: caching, new cache contents: 36 fonts, 0 dirs
  43. /usr/share/fonts/truetype/arphic-bkai00mp: caching, new cache contents: 1 fonts, 0 dirs
  44. /usr/share/fonts/truetype/arphic-bsmi00lp: caching, new cache contents: 1 fonts, 0 dirs
  45. /usr/share/fonts/truetype/arphic-gbsn00lp: caching, new cache contents: 1 fonts, 0 dirs
  46. /usr/share/fonts/truetype/arphic-gkai00mp: caching, new cache contents: 1 fonts, 0 dirs
  47. /usr/share/fonts/truetype/artemisia: caching, new cache contents: 4 fonts, 0 dirs
  48. /usr/share/fonts/truetype/asana-math: caching, new cache contents: 1 fonts, 0 dirs
  49. /usr/share/fonts/truetype/baekmuk: caching, new cache contents: 4 fonts, 0 dirs
  50. /usr/share/fonts/truetype/baskerville: caching, new cache contents: 1 fonts, 0 dirs
  51. /usr/share/fonts/truetype/bodoni-classic: caching, new cache contents: 1 fonts, 0 dirs
  52. /usr/share/fonts/truetype/comfortaa: caching, new cache contents: 3 fonts, 0 dirs
  53. /usr/share/fonts/truetype/complutum: caching, new cache contents: 1 fonts, 0 dirs
  54. /usr/share/fonts/truetype/croscore: caching, new cache contents: 12 fonts, 0 dirs
  55. /usr/share/fonts/truetype/crosextra: caching, new cache contents: 8 fonts, 0 dirs
  56. /usr/share/fonts/truetype/deepin: caching, new cache contents: 6 fonts, 0 dirs
  57. /usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs
  58. /usr/share/fonts/truetype/didot: caching, new cache contents: 4 fonts, 0 dirs
  59. /usr/share/fonts/truetype/didot-classic: caching, new cache contents: 1 fonts, 0 dirs
  60. /usr/share/fonts/truetype/ebgaramond: caching, new cache contents: 10 fonts, 0 dirs
  61. /usr/share/fonts/truetype/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
  62. /usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
  63. /usr/share/fonts/truetype/gazis: caching, new cache contents: 1 fonts, 0 dirs
  64. /usr/share/fonts/truetype/gentium: caching, new cache contents: 4 fonts, 0 dirs
  65. /usr/share/fonts/truetype/gentium-basic: caching, new cache contents: 8 fonts, 0 dirs
  66. /usr/share/fonts/truetype/junicode: caching, new cache contents: 4 fonts, 0 dirs
  67. /usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
  68. /usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
  69. /usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
  70. /usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
  71. /usr/share/fonts/truetype/neohellenic: caching, new cache contents: 4 fonts, 0 dirs
  72. /usr/share/fonts/truetype/noto: caching, new cache contents: 177 fonts, 0 dirs
  73. /usr/share/fonts/truetype/olga: caching, new cache contents: 1 fonts, 0 dirs
  74. /usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
  75. /usr/share/fonts/truetype/porson: caching, new cache contents: 1 fonts, 0 dirs
  76. /usr/share/fonts/truetype/roboto: caching, new cache contents: 0 fonts, 1 dirs
  77. /usr/share/fonts/truetype/roboto/hinted: caching, new cache contents: 18 fonts, 0 dirs
  78. /usr/share/fonts/truetype/solomos: caching, new cache contents: 1 fonts, 0 dirs
  79. /usr/share/fonts/truetype/theokritos: caching, new cache contents: 1 fonts, 0 dirs
  80. /usr/share/fonts/truetype/unfonts-core: caching, new cache contents: 12 fonts, 0 dirs
  81. /usr/share/fonts/truetype/unfonts-extra: caching, new cache contents: 11 fonts, 0 dirs
  82. /usr/share/fonts/truetype/unifont: caching, new cache contents: 4 fonts, 0 dirs
  83. /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
  84. /usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
  85. /usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 0 fonts, 0 dirs
  86. /usr/share/fonts/woff: caching, new cache contents: 0 fonts, 3 dirs
  87. /usr/share/fonts/woff/ebgaramond: caching, new cache contents: 10 fonts, 0 dirs
  88. /usr/share/fonts/woff/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
  89. /usr/share/fonts/woff/gentiumplus: caching, new cache contents: 2 fonts, 0 dirs
  90. /usr/share/fonts/wps-office: caching, new cache contents: 2 fonts, 0 dirs
  91. /usr/X11R6/lib/X11/fonts: skipping, no such directory
  92. /usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
  93. /root/.local/share/fonts: skipping, no such directory
  94. /root/.fonts: skipping, no such directory
  95. /usr/share/fonts: caching, new cache contents: 0 fonts, 10 dirs
  96. /usr/X11R6/lib/X11/fonts: skipping, no such directory
  97. /usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
  98. /root/.local/share/fonts: skipping, no such directory
  99. /root/.fonts: skipping, no such directory
  100. /var/cache/fontconfig: cleaning cache directory
  101. /root/.cache/fontconfig: not cleaning non-existent cache directory
  102. /root/.fontconfig: not cleaning non-existent cache directory
  103. fc-cache: succeeded
  104. granwile@granwille:~$
Copy the Code


What do I do now? So far I can only notice the broken fonts in my browser applications.
Reply View the author
随便逛逛
deepin
2020-05-08 06:19
#4
https://blog.csdn.net/L141210113/article/details/103301806
请使用 字体安装器 安装你下载的字体试试...





Reply View the author
deepin
2020-05-08 07:38
#5
Edited by zhen at 2020-5-7 23:42
https://bbs.deepin.org/post/193795
Unfortunately, this did not work, see what I did:

It seems that your font files are complete. Only the browsers have the problem.And yes to your question, you can recover font files from live system or just unpack the install file xxx.iso.
Have you ever change the font type instead of the font size? I just can't believe none can be available...If you have tried this, ps ignore.

From your description, I think you can try reinstalling Libreoffice and see if your browser is normal or not. Then we can inspect whether the font files or the font config (~/.config/fontconfig) changed. I agree the reason can be located in the install/uninstall of LibreOffice. And maybe in WPS.
Reply View the author
granwille
deepin
2020-05-08 08:06
#6
https://bbs.deepin.org/post/193795
It seems that your font files are complete. Only the browsers have the problem.And yes to your ques ...

Hello

I have re-installed LibreOffice again, rebooted and still no luck, my fonts remain broken in all browsers. I went back to uninstalling LibreOffice again. I also uninstalled WPS, then proceeded to install WPS from the distro, and then downloaded the new 2019 versions and used dpkg -i to install the newer one over the old on of WPS.

Unfortunately, this too has not worked. Can you tell me how I can unpack from an ISO file without doing a live running image of deepin?

What other suggestions do you have for me?
Reply View the author
deepin
2020-05-08 17:39
#7
Frankly speaking, I have no idea now. The system files can be extracted from an ISO file. Open the ISO file and unpack /live/filesystem.squashfs.Then rename its extension e.g. filesystem.zip so that it can be unpacked too.Then the system files can be obtained.
Reply View the author
granwille
deepin
2020-05-08 22:43
#8
https://bbs.deepin.org/post/193795
Frankly speaking, I have no idea now. The system files can be extracted from an ISO file. Open the I ...

Okay, I will try to restore the fonts dir from an ISO. However, what else can I try restoring too?
Reply View the author
granwille
deepin
2020-05-09 00:17
#9
https://bbs.deepin.org/post/193795
Okay, I will try to restore the fonts dir from an ISO. However, what else can I try restoring too? ...

I cannot extract from the ISO:

  1. granwile@granwille:~/Documents/ISO$ mv filesystem.squashfs filesystem.zip
  2. granwile@granwille:~/Documents/ISO$ mkdir filesystem
  3. granwile@granwille:~/Documents/ISO$ mv filesystem.zip filesystem/
  4. granwile@granwille:~/Documents/ISO$ cd filesystem/
  5. granwile@granwille:~/Documents/ISO/filesystem$ unzip filesystem.zip
  6. Archive:  filesystem.zip
  7.   End-of-central-directory signature not found.  Either this file is not
  8.   a zipfile, or it constitutes one disk of a multi-part archive.  In the
  9.   latter case the central directory and zipfile comment will be found on
  10.   the last disk(s) of this archive.
  11. unzip:  cannot find zipfile directory in one of filesystem.zip or
  12.         filesystem.zip.zip, and cannot find filesystem.zip.ZIP, period.
  13. granwile@granwille:~/Documents/ISO/filesystem$
Copy the Code


So this does not work either - sigghhh I am also starting to notice the broken fonts in other applications, and not just my browser anymore.
Reply View the author
deepin
2020-05-09 01:40
#10
https://bbs.deepin.org/post/193795
I cannot extract from the ISO:

I used the 360zip to unpack, maybe it is not a zip file but it can be unpacked. I tried to install and uninstall libreoffice and wps with an English version deepin live system based on v15.11, but the English fonts in the broswer seem to be normal. So I can't think of any way out.
Reply View the author
granwille
deepin
2020-05-09 02:04
#11
https://bbs.deepin.org/post/193795
I used the 360zip to unpack, maybe it is not a zip file but it can be unpacked. I tried to install ...

I hope someone will have some in-sight soon
Reply View the author
granwille
deepin
2020-05-09 02:10
#12
https://bbs.deepin.org/post/193795
I used the 360zip to unpack, maybe it is not a zip file but it can be unpacked. I tried to install ...

I managed to use 360zip now to grab the fonts from the ISO file and ran rsync -a again and also flushed the cache as you instructed, sadly, it helped zero.

I believe that a certain system font package may have been uninstalled at some point, but I have no idea what package it could have been...
Reply View the author
granwille
deepin
2020-05-09 04:54
#13
https://bbs.deepin.org/post/193795
I managed to use 360zip now to grab the fonts from the ISO file and ran rsync -a again and also fl ...

https://bbs.deepin.org/user/58204  Do you have any take on this perhaps?
Reply View the author
granwille
deepin
2020-05-09 07:01
#14
Edited by granwille at 2020-5-8 23:04

Hello, I have done something VERY terrible trying to resolve my issue. I have now destroyed my entire systems fonts. They are all broken I cannot read any thing on any app of file, nothing. See image here: https://we.tl/t-VGvmfKnenh

Please HELP!! My system is useless now, I cannot use it - sigghhhh I am panicking!




Reply View the author
granwille
deepin
2020-05-09 16:05
#15
https://bbs.deepin.org/post/193795
Hello, I have done something VERY terrible trying to resolve my issue. I have now destroyed my entir ...

Hello again,

I managed to fix my system fonts, it seems I broke the permissions in /usr/share/fonts/ which is why it broke for my whole system. Anyway, I am back to my main problem where fonts are broken for ALL my applications. And I really hope someone can help me.

Look how broken my fonts are in the browser:

And this is from a newsletter in my email client application in thunderbird.





Reply View the author
jingle
deepin
2020-05-09 17:12
#16
Reply View the author
htiands
deepin
2020-05-09 20:01
#17
本帖最后由 htiands 于 2020-5-9 12:06 编辑

Hey guy,
you can have a try to go to the Control Center-Personalization-Font-Standard Font,
and check if your standard font is correct.
Look at here.



Reply View the author
granwille
deepin
2020-05-10 12:43
#18
https://bbs.deepin.org/post/193795
https://github.com/iamdh4/ttf-wps-fonts

Thank you, I installed the WP-Office fonts, but it did not fix it. My whole system fonts is broken in ALL my applications I open. Any other help, please?
Reply View the author
granwille
deepin
2020-05-10 12:43
#19
https://bbs.deepin.org/post/193795
本帖最后由 htiands 于 2020-5-9 12:06 编辑

Hey guy,

Hi, thank you. However, I have the exact fonts set, and my system fonts is still broken throughout all my apps?
Reply View the author
granwille
deepin
2020-05-10 12:48
#20
Look at this huge mess guys. Is there really no one that can assist me? Is there no Deepin Devs that can help, please!







Reply View the author
1 / 2
To page