Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-11-18 17:33:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
acfe77a3266eb80bc70931a7009ddfee69baebe2
acfe77a3
1 parent
82f3ccc3
Improve PDF Export
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
ReportEngine/renderers/html_renderer.py
templates/index.html
ReportEngine/renderers/html_renderer.py
View file @
acfe77a
...
...
@@ -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
:
"""
...
...
templates/index.html
View file @
acfe77a
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment