Files
ElyOffice/tasks/reviews/P-06-r1.md
T
2026-10-09 22:18:33 -04:00

1.3 KiB

FAIL

crates/ely-pdf-engine/shim/ely_pen.c:69 — 原字体不可写仍有路径暴露原始引擎错误,违反 PRD §11.3 的换字体提示要求。复现:沿用 tests/fonts.rs 的 UniGB-UCS2-H 样本,将页面 /Resources /Font 下的 /F1 5 0 R 改为直接字体字典,保留其 /DescendantFonts [6 0 R]。页面读出 Hi,文字块 editable=true;编辑面板填入 Yo 并点击应用时,own_font 在 own_codes 前因 p->num == 0 抛出 the document's font is not an object of its own。独立引擎探针收到 Err;实际应用代码的 GPUI 窗口探针记录 panel.note=None,危险提示为 previewing text失败:the document's font is not an object of its own。切换 Helvetica 后可预览并成功写入 Yo,确认换字体可恢复。修复方向:将这种原字体无法用于写入的条件接入 -1 → status 3 → Wrote::Unwritable,由编辑面板显示 pdf.text.unwritable,补充直接字体资源的预览、提交及面板提示回归。指定字体测试、19 项 content/independent 回归、18 项应用编辑回归均通过;新增窗口探针的间接字体对照通过,直接字体提示断言失败。小型证据日志:/tmp/ely-p06-direct.log、/tmp/ely-p06-ui-probe.log。探针源码及构建目录已删除,P-06 范围内源码散列保持一致。