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

About fonts problem on overleaf, 关于overleaf中的字体问题 #1

Open
BloomingDream opened this issue Mar 10, 2020 · 0 comments
Open

Comments

@BloomingDream
Copy link

Hi, I'm a undergraduate of GDUT and will graduate in 2020 summer.
Thanks for your template but when I upload this template on overleaf, I met some problem. It can't be compiled by the engine of overleaf, it doesn't have some CJK fonts, include Source Han Serif SC, Source Han Sans SC.
After some search, I found that it can be replaced by Noto Serif CJK SC, Noto Sans CJK SC, Noto Sans Mono CJK SC and can provide the same effects. So you can just replace the \installOTF command to this:

\newcommand\installOTF{
	\setmainfont{Times New Roman}
	\setsansfont{Arial}
	\setmonofont{Courier New} 
	\setCJKmainfont{Noto Serif CJK SC}
	\setCJKsansfont{Noto Sans CJK SC}
	\setCJKmonofont{Noto Sans Mono CJK SC}
	\setCJKfamilyfont{song}{Noto Serif CJK SC}
	\setCJKfamilyfont{hei}{Noto Sans Mono CJK SC}
}

It's easy that add this info in the README.md doc.
Thanks for your Template.

嗨,我是一名广东工业大学的本科生,将于2020年夏季毕业。
非常感谢您提供模板,但是当我将此模板上传到 overleaf 时,遇到了一些问题。 它无法由下页引擎进行编译,overleaf 不提供某些 CJK 字体,包括 Source Han Serif SC, Source Han Sans SC.
经过一番搜索,我发现可以将其替换为Noto Serif CJK SC,Noto Sans CJK SC,Noto Sans Mono CJK SC, 并且可以保证同样的显示效果。因此,您只需将 \installOTF 命令替换为:

\newcommand\installOTF{
	\setmainfont{Times New Roman}
	\setsansfont{Arial}
	\setmonofont{Courier New} 
	\setCJKmainfont{Noto Serif CJK SC}
	\setCJKsansfont{Noto Sans CJK SC}
	\setCJKmonofont{Noto Sans Mono CJK SC}
	\setCJKfamilyfont{song}{Noto Serif CJK SC}
	\setCJKfamilyfont{hei}{Noto Sans Mono CJK SC}
}

在 README.md 文档中添加一些信息很容易。
感谢您的模板。

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

1 participant