Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove built-in Lato font #249

Closed
iissnan opened this issue Jun 26, 2015 · 6 comments
Closed

Remove built-in Lato font #249

iissnan opened this issue Jun 26, 2015 · 6 comments
Labels
Milestone

Comments

@iissnan
Copy link
Owner

iissnan commented Jun 26, 2015

There are many issues with built-in Lato font ( #135, #137, #164, #167, #187), so I decide to remove the built-in Lato font and replace it by using Google font API.

But Google font API has the connection issue in China, so I have to do some additional things for this case. If language is set to zh-Hans, NexT will not use Google font API. And there will be a new setting use_lato_font, to manually turn it on/off.

That is to say, Lato font will be:

  1. off = language: zh-Hans || use_font_lato: false
  2. on = !off
@iissnan iissnan added the Font label Jun 26, 2015
@iissnan iissnan added this to the v0.4.4 milestone Jun 26, 2015
@iissnan
Copy link
Owner Author

iissnan commented Jun 26, 2015

The default value of use_font_lato is true. So if you set language to something other than zh-Hans and you have problem with connection to Google Fonts API. You need to manually change use_font_lato to false.

@eurusd
Copy link

eurusd commented Jun 26, 2015

use_font_lato: false
是解决手机浏览卡顿吗?

@eurusd
Copy link

eurusd commented Jun 26, 2015

好勤快的作者,超赞。

@iissnan
Copy link
Owner Author

iissnan commented Jun 26, 2015

@eurusd 去掉了 Lato 字体,加载速度应该会快一些。另外一个就是,在有些场景下,英文字体显示不了的问题。

@mingmings
Copy link

@iissnan 👍

@iissnan iissnan closed this as completed Jul 2, 2015
@flashlab
Copy link
Contributor

@iissnan 国内可以用http://libs.useso.com/ 提供的镜像

tonydeng pushed a commit to tonydeng/hexo-theme-next that referenced this issue Oct 21, 2015
wangpei72 pushed a commit to wangpei72/hexo-theme-next that referenced this issue Sep 17, 2021
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants