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

字体设置在代码在部分失效的问题 #127

Open
w-jin opened this issue Aug 15, 2020 · 1 comment
Open

字体设置在代码在部分失效的问题 #127

w-jin opened this issue Aug 15, 2020 · 1 comment

Comments

@w-jin
Copy link

w-jin commented Aug 15, 2020

问题描述:自定义字体为FiraCode,文件已经放到gridea/themes/next/assets/media/fonts下,文章正文部分字体已经生效,但是代码区域仅有部分字体是FiraCode,其余部分是系统字体(电脑上是consolas,手机上是courier new)。

问题图片:
Snipaste_2020-08-15_10-44-38
有高亮的部分如for、vector、数字都是FiraCode,但没有高亮的部分,如变量名字counts等都是consolas。

@hsxyhao
Copy link
Owner

hsxyhao commented Aug 23, 2020

问题描述:自定义字体为FiraCode,文件已经放到gridea/themes/next/assets/media/fonts下,文章正文部分字体已经生效,但是代码区域仅有部分字体是FiraCode,其余部分是系统字体(电脑上是consolas,手机上是courier new)。

问题图片:
Snipaste_2020-08-15_10-44-38
有高亮的部分如for、vector、数字都是FiraCode,但没有高亮的部分,如变量名字counts等都是consolas。

自定义字体和代码的高亮以及代码块的字体不是通用设置的

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

2 participants