Skip to content

Commit 564e0d8

Browse files
committed
update doc fonts
- Iosevka Slab -> Latin Modern Mono (Light) - Load Source Han by font file names
1 parent cfe75f0 commit 564e0d8

File tree

3 files changed

+41
-31
lines changed

3 files changed

+41
-31
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ thesis/
4747
# Other
4848
.DS_Store
4949
*.zip
50+
*.otf
5051
source/*.md
5152
source/*.sh
5253
source/fduthesis-code.*

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- 封面信息栏改用表格实现 - [#60][#86]
1919
- 通过引入 `ctex-c5size.clo` 来修改字号 - [#78]
2020
- (fdudoc) 移除多余的文档层定义
21+
- (fdudoc) 更新宏包手册字体
2122

2223
## [v0.8 (2022-09-04)]
2324

source/fduthesis-doc.dtx

+39-31
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,8 @@
16601660
\bibliographystyle{gbt7714-numerical}
16611661
% \end{macrocode}
16621662
%
1663-
% \changes{v0.7c}{2019/02/08}{修改宏包手册主要字体。}
1663+
% \changes{v0.7c}{2019/02/08}{[\pkg{fdudoc}] 修改宏包手册主要字体。}
1664+
% \changes{v0.9}{2023/02/18}{[\pkg{fdudoc}] 更新宏包手册字体。}
16641665
%
16651666
% 西文字体。为兼容 macOS,系统字体需使用字体名,而 \TeXLive{}
16661667
% 中的字体需使用文件名。
@@ -1678,29 +1679,36 @@
16781679
BoldFont = *-Bold,
16791680
ItalicFont = *-Italic,
16801681
BoldItalicFont = *-BoldItalic]
1681-
\setmonofont{Iosevka Slab}[
1682-
UprightFont = * Light,
1683-
BoldFont = * Semibold,
1684-
ItalicFont = * Light Oblique,
1685-
BoldItalicFont = * Semibold Oblique,
1686-
Scale = MatchLowercase]
1682+
\setmonofont{lmmonolt10}[
1683+
Extension = .otf,
1684+
UprightFont = *-regular,
1685+
BoldFont = *-bold,
1686+
ItalicFont = *-oblique,
1687+
BoldItalicFont = *-boldoblique]
16871688
\setmathfont{LibertinusMath-Regular.otf}
16881689
% \end{macrocode}
16891690
%
16901691
% 中文字体。
16911692
% \begin{macrocode}
1692-
\setCJKmainfont{Source Han Serif SC}[
1693-
ItalicFont = FZKai-Z03,
1694-
CharacterWidth = Full]
1695-
\setCJKsansfont{Source Han Sans SC}[
1696-
ItalicFont = *,
1697-
CharacterWidth = Full]
1698-
\setCJKmonofont{Source Han Sans SC}[
1699-
UprightFont = * Normal,
1700-
BoldFont = * Bold,
1701-
AutoFakeSlant = 0.1763, % = tan(10 deg)
1702-
Scale = 0.8903,
1703-
CharacterWidth = Full]
1693+
\setCJKmainfont{SourceHanSerifSC}[
1694+
Extension = .otf,
1695+
UprightFont = *-Regular,
1696+
BoldFont = *-Bold,
1697+
ItalicFont = FandolKai-Regular,
1698+
UprightFeatures = { CharacterWidth = Full },
1699+
BoldFeatures = { CharacterWidth = Full }]
1700+
\setCJKsansfont{SourceHanSansSC}[
1701+
Extension = .otf,
1702+
UprightFont = *-Regular,
1703+
BoldFont = *-Bold,
1704+
CharacterWidth = Full]
1705+
\setCJKmonofont{SourceHanSansSC}[
1706+
Extension = .otf,
1707+
UprightFont = *-Normal,
1708+
BoldFont = *-Bold,
1709+
AutoFakeSlant = 0.1763, % = tan(10 deg)
1710+
Scale = 0.9,
1711+
CharacterWidth = Full]
17041712
% \end{macrocode}
17051713
%
17061714
% 版式排版格式。
@@ -1971,7 +1979,7 @@
19711979
% \begin{macro}[int]{style@base}
19721980
% \begin{macrocode}
19731981
\lstdefinestyle{style@base}{
1974-
basewidth = 0.5 em,
1982+
basewidth = 0.525 em,
19751983
gobble = 3,
19761984
lineskip = 2 pt,
19771985
frame = l,
@@ -2016,17 +2024,17 @@
20162024
% \begin{macro}[int]{style@syntax}
20172025
% \begin{macrocode}
20182026
\lstdefinestyle{style@syntax}{
2019-
basewidth = 0.5 em,
2020-
gobble = 6,
2021-
escapeinside = {(*}{*)},
2022-
language = [LaTeX]TeX,
2023-
alsoletter = {*, -},
2024-
basicstyle = \footnotesize\ttfamily\color{MaterialGrey900},
2025-
keywordstyle = \bfseries\color{MaterialIndigo},
2026-
commentstyle = \itshape\color{MaterialGrey600},
2027-
texcsstyle = *\color{MaterialDeepOrange},
2028-
emphstyle = [1]\color{MaterialGreen800},
2029-
emphstyle = [2]\color{MaterialTeal}
2027+
basewidth = 0.525 em,
2028+
gobble = 6,
2029+
escapeinside = {(*}{*)},
2030+
language = [LaTeX]TeX,
2031+
alsoletter = {*, -},
2032+
basicstyle = \footnotesize\ttfamily\color{MaterialGrey900},
2033+
keywordstyle = \bfseries\color{MaterialIndigo},
2034+
commentstyle = \itshape\color{MaterialGrey600},
2035+
texcsstyle = *\color{MaterialDeepOrange},
2036+
emphstyle = [1]\color{MaterialGreen800},
2037+
emphstyle = [2]\color{MaterialTeal}
20302038
}
20312039
% \end{macrocode}
20322040
% \end{macro}

0 commit comments

Comments
 (0)