Rich Text Segments
Overview
Cell strings often require multi-font formatting, where specific character ranges are bold, colored, or underlined; HotXLS supports parsing and generating rich text runs in both XLS and XLSX formats
Worksheet phonetic fonts
Saving an XLSX worksheet retains a font referenced only by its phonetic settings, including its represented name, size and other font properties
When unused fonts are removed, the phonetic font reference is remapped to the retained font's new position; worksheets that share that font continue to share it, and font index 0 continues to identify the workbook's default font
This XML persistence behavior also applies to supported Strict output; it does not add XLSB phonetic metadata support or change the handling of malformed references
Construction failures
If allocating an OOXML rich-text object fails during construction, partial cleanup preserves EOutOfMemory instead of raising a secondary access violation
This applies to standalone rich text and comment-owned rich text; normal construction can be retried after memory becomes available
Shared Rich Text
In the classic XLS BIFF8 format, rich text segments are stored in the Shared String Table (SST) as trailing coordinate arrays (rgRun blocks) mapped to each string; HotXLS parses these structures, ensuring that Far East phonetic runs and specific character highlights survive save cycles
XLSX Rich Text Flows
In OOXML, rich text is represented using nested text runs inside Shared Strings XML parts; check the supporting interface details below
- TXLSXRichText class — API to manage multi-font text runs
- TXLSXSharedStrings class — Shared string table controls
- XLSX facade overview — XLSX-specific formatting logic