rhiokim / markdown-css

markdown theme standard style, using less (for haroopad)
http://rhiokim.github.io/markdown-css
83 stars 33 forks source link

font-family is not Chinese-character friendly #5

Open breezewish opened 9 years ago

breezewish commented 9 years ago

Currently Chinese characters are rendered ugly :(

font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", AppleSDGothicNeo-Medium, 'Segoe UI', 'Malgun Gothic', Verdana, Tahoma, sans-serif;

How about this:

font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Segoe UI", Verdana, Tahoma, "Hiragino Sans GB", "Hiragino Sans GB W3", STHeiti, AppleSDGothicNeo-Medium, "Microsoft YaHei", sans-serif;

Or let the system judge the font?

font-family: sans-serif
rhiokim commented 9 years ago

Thank you good advice. Although set in Chinese > Japanese > Korean order do not know what the main font of China and Japan.

breezewish commented 9 years ago

@rhiokim I found that AppleSDGothicNeo-Medium has its own Chinese characters, so it will overwrite Chinese fonts behind it (and will be rendered ugly). On the other hand, Chinese font Hiragino Sans GB has Korean characters as well. So the order might be a complex issue. That's why I prefer font-family: sans-serif :-) which is pretty OK in OS X, but I don't know how it looks in Windows.

breezewish commented 9 years ago

BTW, how to set default font-family in user style css?

body {
    font-family: ...
}

doesn't work.

Currently I'm using:

*:not(code) {
    font-family: ...
}

Are there any better ideas?

rhiokim commented 9 years ago

Right! Could you tell me about many used fonts or favorite fonts in Chinese?

OSX Windows Linux
Chinese ? ? ?
Japanese ? ? ?
Korean AppleSDGothic-* Malgun Gothic ?
rhiokim commented 9 years ago

And you can get little bit information - https://github.com/rhiokim/haroopad/issues/342

breezewish commented 9 years ago

wow thank you, body,.markdown selector works!

For Chinese:

OS OS X (<10.6, >=10.6) Windows (<7, >=7) Ubuntu 13
Default STHeiti, Heiti SC SimSun, NSimSun WenQuanYi Zen Hei
Recommended Hiragino Sans GB Microsoft YaHei ?