iissnan / hexo-theme-next

Elegant theme for Hexo.
http://notes.iissnan.com
MIT License
15.87k stars 3.62k forks source link

font 修改 #111

Closed howmind closed 9 years ago

howmind commented 9 years ago

很喜欢这个simple风格。请问如何修改字体?目前字体看的有点累~

eurusd commented 9 years ago

http://chopstack.com/ 这个站的字体不错.

body { background-color: #FFF; color: #444; font-family: "TIBch", "Classic Grotesque W01", "Helvetica Neue", Arial, "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", SimSun, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 14px;

iissnan commented 9 years ago

如果你更新到最新版的话,可以在 source/css/_custom/variables.styl 中自定义字体:

$font-family-headings = Georgia, sans // 标题,修改成你期望的字体族 
$font-family-base = "Microsoft YaHei", Verdana, sans-serif // 修改成你期望的字体族
eurusd commented 9 years ago

source/css/_custom/variables.styl 好象没有custom目录吧?

iissnan commented 9 years ago

@eurusd 刚新增的。

eurusd commented 9 years ago

收到 我更新一下主题 适适。 http://chopstack.com/ 这个站的字体 您看看!

iissnan commented 9 years ago

主题的默认字体目前不打算改。你可以试试在自定义那个文件中将字体改成:

$font-family-base = "TIBch", "Classic Grotesque W01", "Helvetica Neue", Arial, "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", SimSun, sans-serif
eurusd commented 9 years ago

好的。谢谢

eurusd commented 9 years ago

模糊 不清晰。

font-family: "TIBch", "Classic Grotesque W01", "Helvetica Neue", Arial, "Hiragino Sans GB",
"STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", SimSun, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 14px; }

-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 14px; }

如何填加

iissnan commented 9 years ago

source/css/_custom/custom.styl 中添加:

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
eurusd commented 9 years ago

收到

eurusd commented 9 years ago

手机浏览 默认主题 字体非常好,默认字体已经很好了.谁想改,参考一下这个css