Improve PDF Export
This commit is contained in:
@@ -101,8 +101,8 @@ class HTMLRenderer:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_font_path() -> Path:
|
def _get_font_path() -> Path:
|
||||||
"""返回PDF导出所需字体的路径"""
|
"""返回PDF导出所需字体的路径(使用优化后的子集字体)"""
|
||||||
return Path(__file__).parent / "assets" / "fonts" / "SourceHanSerifSC-Medium.otf"
|
return Path(__file__).parent / "assets" / "fonts" / "SourceHanSerifSC-Medium-Subset.otf"
|
||||||
|
|
||||||
def _load_lib(self, filename: str) -> str:
|
def _load_lib(self, filename: str) -> str:
|
||||||
"""
|
"""
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user