reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
https://io-oi.me/hugo-theme-meme
MIT License
1.01k stars 279 forks source link

字体如何更换 #433

Open tosspi opened 1 year ago

tosspi commented 1 year ago

感觉霞鹜文楷这个字体比较不错,怎么换成这个字体

Rurouni-z commented 1 year ago

https://io-oi.me/tech/get-started-with-variable-fonts/ 可以参考一下,另外貌似改字体只支持 Google Fonts

# 网络字体链接
fontsLink = "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&family=Source+Code+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Cinzel+Decorative:wght@700&display=swap"
# 说明:要想读者一定体验到你设置的字体,最好
#      采用网络字体。MemE 主题目前仅支持
#      Google Fonts 的链接,请前往
#      https://fonts.google.com/ 获取。
#      此项留空(""),则不会采用网络字体。

https://github.com/lxgw/LxgwWenKai/issues/24

needhourger commented 1 month ago

有关字体的问题,我还遇到一个情况是我使用了一些别的Google Fonts, 在本地预览hugo server可以看到确实有效,但是deploy到github page之后字体就失效了,变成了最基础的默认字体?

reuixiy commented 1 month ago

@needhourger /cf-fonts/ 看樣子是 Cloudflare 的某種機制導致的?

Arc 2024-08-02 at 10  06 08@2x

needhourger commented 1 month ago

oops, 看起来在一些新设备上字体最终正常了,好吧,感谢!