Files
FoFreeXit/.gitignore
T
adminandClaude Fable 5 68883b9e75
Build Windows portable / build (push) Canceled after 0s
Gốc rễ lỗi font ô sửa: field IPC lệch tên camelCase/snake_case + kéo-thả mở file
Debug trên app thật (WebView2 remote debugging + CDP) với file thật tìm ra
nguyên nhân gốc chuỗi lỗi font: DTO Tauri serialize camelCase (fontBold,
fontFamily, fontSize) nhưng code edit-mode đọc snake_case (font_bold...) →
mọi thuộc tính font trong UI luôn undefined (không đậm, sai family, cỡ mặc
định 12). Đổi hết sang camelCase nhất quán với app.

- Engine: fontmatch::style_from_font_bytes parse sfnt thủ công — OS/2
  usWeightClass/fsSelection, fallback head.macStyle (LibreOffice subset vứt
  OS/2 nhưng head luôn còn; kiểm bằng qpdf trích FontFile2 file thật). 2
  unit test sfnt tự dựng.
- Kéo-thả .pdf từ Explorer vào cửa sổ → mở file (tauri://drag-drop).
- Ẩn khung dòng overlay khi ô sửa mở (nền trong suốt lộ khung gây nhiễu).
- Ignore /*.pdf ở root (file test thật của user không được commit).

Kiểm chứng E2E không cần rebuild: inject hàm mới vào app build-12 đang chạy
qua CDP, mở ô sửa trên file thật + chụp màn hình — tiêu đề 2 dòng bold đúng
cỡ/vị trí nền trong suốt; khối bullet 8 dòng sạch PUA, bullet gốc nguyên
trên trang. Test Node trên dữ liệu run thật từ engine: 6/6 PASS.
Chi tiết: docs/12-phase4-summary.md (Vá vòng 5).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 00:50:22 +07:00

30 lines
646 B
Plaintext

/target
**/*.rs.bk
Cargo.lock.bak
# PDFium prebuilt binary (tải bằng scripts/fetch-pdfium.ps1)
/pdfium/
/pdfium.dll
/pdfium.dll.lib
# QPDF prebuilt binary (tải bằng scripts/fetch-qpdf.ps1)
/qpdf/
# Tauri / node
/app/node_modules
/app/dist
/app/src-tauri/target
# Bản build portable tải về từ GitHub Release
/dist/
# Ảnh tạm khi test render
/tmp-out/
*.tmp.png
# File PDF thật của user (hồ sơ/kinh doanh cá nhân) — chỉ dùng test local,
# không đẩy lên repo công khai. PDF thả ở root cũng là file test của user
# (corpus/ đã track sẵn nên không ảnh hưởng).
/pdf-file-to-test/
/*.pdf