Is it just me or fonts in the english main site are broken?
Tofloor
poster avatar
jpcarvalhinho
deepin
2017-10-11 08:24
Author
Can you please go to the main deepin site and check if changing the language to italian for instance and back to english do change the fonts that are beeing used? On my computer it looks so outdated it hurts...
Reply Favorite View the author
All Replies
jpcarvalhinho
deepin
2017-10-11 08:28
#1
there is this line in index.css line 39

html[lang="en-US"] body {
    font-family: 'open sans',"Noto Sans CJK SC","Source Han Sans CN" !important
}

If you remove it or add other font to it, it gets better, so the error is here.

Reply View the author
jpcarvalhinho
deepin
2017-10-11 08:31
#2
In MACOS X at least... don't know if alright in deepin.
Reply View the author
melodyzou
deepin
2017-10-11 21:28
#3
There is no issue on my computer.
Could you make a gif/mp4 to show me the issue?
Reply View the author
jpcarvalhinho
deepin
2017-10-12 06:41
#4
Edited by jpcarvalhinho at 2017-10-11 14:42

FIREFOX/ en_US


FIREFOX/ others


Chrome/ en_US


CHROME/others



I have no doubt that it is because of that Line of CSS where you pick the font... it is only specified when the body has the Language en_US declared. If you deactivate it in the browser's developer tools it reverts to the default font.

Computer: MAC OSX
Reply View the author
wtz
deepin
2017-10-12 11:18
#5
Indeed... The serif font looks weird sometimes...
Reply View the author
melodyzou
deepin
2017-10-13 01:31
#6
That's font when in English and Italian on my deepin


Reply View the author
jpcarvalhinho
deepin
2017-10-13 03:41
#7
Edited by jpcarvalhinho at 2017-10-12 13:03

well... it happens in MAC OSX... I believe neither of those font-types exist on a default Mac OSX instalation.... hence the fall back to times.

So if you add

, sans-serif before the !important it should suffice.


  1. html[lang="en-US"] body {
  2.     font-family: 'open sans',"Noto Sans CJK SC","Source Han Sans CN", sans-serif !important;
  3. }
Copy the Code


Reply View the author
jpcarvalhinho
deepin
2017-10-13 05:06
#8
AW... and here in the forum there is the same problem

In newHeader.Css in line 21 you have the same line of code:

  1. html[lang='en-US'] body{
  2.   font-family: 'open sans',"Noto Sans CJK SC","Source Han Sans CN" !important;
  3. }
Copy the Code


Should replace it with

AW... and here in the forum there is the same problem

in newHeader.css on line 21 you also have to add in the same , sans-serif

  1. html[lang='en-US'] body{
  2.   font-family: 'open sans',"Noto Sans CJK SC","Source Han Sans CN", sans-serif !important;
  3. }
Copy the Code

Reply View the author