Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Offer missing document fonts before conversion

已关闭
#413 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Perricheno 已经在做这个了。

开始于 2026年10月22日。

评估

这个 Issue 还没有评估数据。

描述

enhancement

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:

  1. Keep the conversion in the bottom-right progress card and pause before the final render.
  2. Show the missing families and the replacements Filee would use, for example: Times New Roman → Liberation Serif.
  3. Offer Get fonts, Continue with replacements, and Cancel.
  4. 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-fonts option 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

KnifeLemon/Filee 的其他 Issue

查看 KnifeLemon/Filee 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。