feat(article-export): render PDF with embedded CJK font instead of canvas
Frontend CI / Frontend (push) Successful in 3m2s

Embed SourceHanSansSC and use native jsPDF text rendering for crisp,
selectable PDF output, replacing the canvas rasterization approach.
Also fix download menu item alignment.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 00:09:38 +08:00
parent c28c4f1419
commit 0d2cedb1e8
3 changed files with 566 additions and 438 deletions
File diff suppressed because it is too large Load Diff
@@ -779,11 +779,19 @@ onBeforeUnmount(() => {
.article-editor-view__download-menu :deep(.ant-dropdown-menu-item) {
min-width: 170px;
padding: 11px 14px;
gap: 12px;
color: #1f2937;
font-size: 15px;
}
.article-editor-view__download-menu :deep(.ant-dropdown-menu-title-content) {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;
width: 100%;
text-align: left;
}
.article-editor-view__download-icon {
display: inline-flex;
align-items: center;