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

字体如何更换 #433

Open
tosspi opened this issue Jun 10, 2023 · 4 comments
Open

字体如何更换 #433

tosspi opened this issue Jun 10, 2023 · 4 comments

Comments

@tosspi
Copy link

tosspi commented Jun 10, 2023

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

@Rurouni-z
Copy link

Rurouni-z commented Jun 10, 2023

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/ 获取。
#      此项留空(""),则不会采用网络字体。

lxgw/LxgwWenKai#24

@needhourger
Copy link

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

@reuixiy
Copy link
Owner

reuixiy commented Aug 2, 2024

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

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

@needhourger
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants