Skip to content
Snippets Groups Projects
Commit adf63bc0 authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

feat: 尝试添加手动指定字体功能但失败了

parent 6ea80979
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
\DeclareStringOption[UG]{Degree}
\DeclareStringOption[thesis]{Type}
\DeclareBoolOption[true]{UseSysFont}
\DeclareStringOption[linux]{CustomChFont}\DeclareStringOption[linux]{CustomEnFont}
\DeclareStringOption[windows]{CustomZhFont}\DeclareStringOption[windows]{CustomEnFont}
\ProcessKeyvalOptions*\relax
......
......@@ -20,8 +20,8 @@
Degree=UG,% UG: 本科
Type=thesis,% thesis: 毕业论文,design: 毕业设计
UseSysFont=false,% 自定义字体请反注释此项
CustomChFont=noto,% 设置中文字符集
% CustomEnFont=linux,% 设置英文字符集
CustomZhFont=windows,% 设置中文字符集
CustomEnFont=windows,% 设置英文字符集
]{njuthesis}
% 输入个人信息
......
......@@ -173,20 +173,20 @@
}
}
\else% 如果用户需要自定义
\str_case:nnTF {\CustomChFont}
\str_case:nn {\CustomEnFont}
{
{windows}{\set_latin_fontset_windows}
{macos}{\set_latin_fontset_macos}
{gyre}{\set_latin_fontset_gyre}
}
\str_case:nn {\CustomZhFont}
{
{windows}{\set_chinese_fontset_windows}
{macos}{\set_chinese_fontset_macos}
{linux}{\set_chinese_fontset_fandol}
{fandol}{\set_chinese_fontset_fandol}
{founder}{\set_chinese_fontset_founder}% 使用方正字体
{noto}{\set_chinese_fontset_noto}% 使用思源宋体+思源黑体
}
\str_case:nnTF {\CustomEnFont}
{
{windows}{\set_latin_fontset_windows}
{macos}{\set_latin_fontset_macos}
{linux}{\set_latin_fontset_gyre}
}
\fi
% 我是 Linux 用户,但我用 Windows 字体(请您赶快坐到主席台上来)
% 选择其他字体,请确保相应字体已安装
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment