{
"title": "博客改字体",
"tags": [
"post",
"字体",
"font"
],
"sources": [
"xlog"
],
"external_urls": [
"https://mydiary.top/font"
],
"date_published": "2023-04-20T02:48:02.988Z",
"content": "![](https://mytuchuang.endpoint.4everland.co/2023/04/702649d13c83bdccf51eba270b91afef.png)\n最近看到大伙都在改这个字体,我也试一下,效果确实不错。\n\n#### 更新\n下面两个网站查看是否有更新\n1. https://github.com/chawyehsu/lxgw-wenkai-webfont/releases\n2. https://github.com/lxgw/LxgwWenKai-Screen/releases\n\n#### 修改\n\n在xlog的配置页面添加下面的CSS即可\n```\n@import url(\"https://cdnjs.cloudflare.com/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaigbscreen.css\");\n\n.xlog-page-index, .xlog-page-post {\n font-family: \"LXGW WenKai Screen\", sans-serif;\n font-weight: normal;\n font-size: 18px;\n}\n```\n一共有4个样式,根据喜好自行选择\n1. lxgwwenkaiscreenr.css/LXGW WenKai Screen R\n2. lxgwwenkaiscreen.css/LXGW WenKai Screen\n3. lxgwwenkaigbscreenr.css/LXGW WenKai Screen R\n4. lxgwwenkaigbscreen.css/LXGW WenKai Screen",
"attributes": [
{
"value": "font",
"trait_type": "xlog_slug"
}
]
}