Skip to content

fix: preserve circled numbers in exported PDF reports - #59

Merged
Snailclimb merged 1 commit into
Snailclimb:masterfrom
MoChiUaena:codex/fix-pdf-circled-numbers
Oct 8, 2026
Merged

Snailclimb merged 1 commit into
Snailclimb:masterfrom
MoChiUaena:codex/fix-pdf-circled-numbers

Conversation

@MoChiUaena

Copy link
Copy Markdown
Contributor

Circled numbers such as ①②③ display correctly during an interview but become missing-glyph boxes in the exported PDF because the bundled Chinese font does not contain them. Resume analysis reports use the same font and are affected as well.

Add an embedded Noto Sans Symbols fallback while keeping Zhuque Fangsong as the preferred font for supported characters. Use per-character font selection so English and digits following a circled number retain the original font. The font license and source are included.

Regression tests cover both report types, circled number variants, embedded fonts, mixed Chinese/English text, and repeated exports.

Validation: Java 25 :app:clean :app:test :app:bootJar passed with 364 tests passing and 45 existing disabled tests. All seven new export tests passed. Paragraphs containing fallback symbols can have increased line height due to the symbol font's metrics.

- 为中文字体缺失的编号使用内嵌符号字体,保留原始文本
- 保持编号后的中英文使用原字体,补充面试和简历导出回归
- 完整后端测试 364 项通过、45 项原有禁用,PDF 渲染和打包验证通过
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants