Improve PDF Export

This commit is contained in:
马一丁
2025-11-18 17:33:55 +08:00
parent 82f3ccc3e3
commit acfe77a326
2 changed files with 12 additions and 2 deletions

View File

@@ -101,8 +101,8 @@ class HTMLRenderer:
@staticmethod
def _get_font_path() -> Path:
"""返回PDF导出所需字体的路径"""
return Path(__file__).parent / "assets" / "fonts" / "SourceHanSerifSC-Medium.otf"
"""返回PDF导出所需字体的路径(使用优化后的子集字体)"""
return Path(__file__).parent / "assets" / "fonts" / "SourceHanSerifSC-Medium-Subset.otf"
def _load_lib(self, filename: str) -> str:
"""

File diff suppressed because one or more lines are too long