News for hackers. Stuff that matters.
Re:agentzh's Nginx Tutorials by 286c8cb04bda on Friday March 23, 2012 @11:17AM (#3745512)
That page declares lang="zh" in the html tag. So it's probably not using the default font for Western or Unicode, but whatever the browser maps to Simplified Chinese.

In my case that was much uglier, and I had to fix it to read the page.

Re:agentzh's Nginx Tutorials by agentzh on Friday March 23, 2012 @11:17PM (#3748364)
Thank you for pointing this out. I've just fixed the lang attribute of the html tag. It is "en" now :)
Re:agentzh's Nginx Tutorials by obtu on Friday March 23, 2012 @12:33PM (#3745917)
Looks good on firefox/ubuntu. It's strange that there's a browser using the lang tag for this; as I understand it web pages create a font spec according to style attributes and not lang tags, and fontconfig would only substitute fonts for a range of actual chinese characters if the preferred matching font didn't cover that range.
Re:agentzh's Nginx Tutorials by pavelkaroukin on Friday March 23, 2012 @11:50AM (#3745669)
I see this as valid reason. Although, did not see difference on ubuntu and windows. What browser + OS you use?

While this is a reasonable explanation, I see many cases where system fonts set wrong and as a result an unstyled page look terrible.

Re:agentzh's Nginx Tutorials by 286c8cb04bda on Friday March 23, 2012 @12:37PM (#3745943)
> What browser + OS you use?

I saw the problem with Firefox 10 on CentOS. My default font was specifically configured to Bitstream Vera Serif.

Setting the default font in the Preferences seems to only change it for the encoding in the active tab (unless you go into the Advanced dialog). For several Asian languages it wanted to use "serif", which appears to be the 20-year-old X11 default version.