mirror of
https://github.com/aphrody-labs/pdfcraft.git
synced 2026-10-14 03:29:04 +00:00
pdfcraft_fonts::win_ansi, edit's is_win_ansi_char and the xtask demo encoder each carried a hand-written subset of WinAnsiEncoding's 0x80-0x9F row (quotes, dashes, euro, trademark) and left out Š š Ž ž Œ œ Ÿ ƒ † ‡ ˆ ˜ ‰ ‹ ›. Text editing therefore treated š/ž as non-WinAnsi and sent them to the Type3 fallback font (or refused them without craft-fonts), and every other generator (forms, annotations, OCR layer, redaction overlay, signatures, create) wrote them as '?'. win_ansi now goes through a new win_ansi_byte, which reads the 0x80-0x9F codes from the same ISO 32000-2 Annex D table the text extractor decodes with, and is_win_ansi_char reuses it. xtask doesn't depend on pdfcraft-fonts, so its demo encoder gets the full row with a pointer to the shared table. č/ć are not in WinAnsi and still use the fallback. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>