Offer missing document fonts before conversion
维护者通常 1 天内回复
@Perricheno 已经在做这个了。
开始于 2026年10月22日。
评估
这个 Issue 还没有评估数据。
描述
Problem
Office and HWPX documents can name fonts that are not installed on the computer. Filee currently substitutes them silently. The result may stay readable, but different font metrics can change wrapping, pagination and table layout. #409 prevents completely blank text when rhwp's own fallback fonts are absent, but it intentionally does not solve exact document typography.
Proposed flow
When a text-rendering step discovers missing families:
- Keep the conversion in the bottom-right progress card and pause before the final render.
- Show the missing families and the replacements Filee would use, for example:
Times New Roman → Liberation Serif. - Offer Get fonts, Continue with replacements, and Cancel.
- After fonts are installed, release the font cache, check the families again, and resume the same job. If some are still absent, keep the remaining list visible.
For freely licensed families, Filee can download a pinned archive with a checksum and install it per user. For proprietary families, it should not redistribute font files silently: Get fonts can open the official source or let the user choose font files they already obtained.
Non-interactive conversions
- CLI: print the missing families and substitutions, then continue by default; a future
--require-fontsoption can fail instead. - Watch folders: use a saved continue/fail policy so an unattended job never waits forever.
Implementation notes
RhwpFonts.Plan already knows which families are absent and which replacements it chose. The missing piece is an interactive question on a ConversionJob/FileResult, rendered by ToastWindow, whose answer the running conversion can await. LibreOffice routes need an OOXML/HWPX preflight because substitution happens inside LibreOffice.
Acceptance cases
- No prompt when every referenced family is installed.
- A DOCX referencing absent Times New Roman/Calibri lists both before rendering.
- Continuing produces the current fallback result.
- Installing an available font refreshes discovery and resumes without restarting Filee.
- Cancelling removes partial outputs.
- CLI and watch-folder conversions never block on a GUI prompt.
- 主要语言
- C#
- 星标
- 3.6k
- 派生
- 192
- 平均合并
- 7 小时 3 分钟
- 30 天内合并 PR
- 244
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
KnifeLemon/Filee 的其他 Issue
-
[Bug] Interactive toggle inside Theme preview card is completely unresponsive in Settings可能已有人在做 @Saad-elnagar 于 4 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 65/100
KnifeLemon/Filee#363 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
formats
难度 3/5 1-2 天 新手友好度 48/100
KnifeLemon/Filee#588 ·
维护者通常 1 天内回复
-
[Format]: .kgma未关闭formats
难度 3/5 1-2 天 新手友好度 52/100
KnifeLemon/Filee#587 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 62/100
KnifeLemon/Filee#586 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
KnifeLemon/Filee#585 ·
维护者通常 1 天内回复
相似的 Issue
-
area:jobads-cv BE P3
难度 1/5 1-3 小时 新手友好度 74/100
klasolsson81/jobbliggaren#2240 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
k2-fsa/sherpa-onnx#4100 ·
维护者通常 2 天内回复
-
:watch: Not Triaged
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
unoplatform/uno.check#591 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
weaviate/csharp-client#378 ·