mirror of
https://github.com/storytold/AniCraft.git
synced 2026-12-01 02:24:23 +01:00
CPicText records decode into the same text blocks the XFL importer makes of their twins' DOMStaticText / DOMDynamicText: matrix, bounds, autoExpand, static vs dynamic single/multiline from the field flags, runs with face, size, colour and alpha, bold/italic, alignment, letter/line spacing, indent, superscript, target, render mode and anti-alias thickness. The 512-unit storage pieces of one run merge back as XFL shows them, texts without characters read their one attribute block, and the header and trailer strings go through a full MFC CArchive CString reader (with the FF FE FF FF <u16> long form). Unknown values are approximated and counted; a record whose structure isn't a text's is refused whole. Corpus (env-gated): 372/372 records decode and pair with their twins, 372/372 element-level and 667/667 run-level field checks, the one known 1-twip bounds difference tolerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>