Rich Text Segments
Overview
Cell strings often need multi-font formatting, where particular character ranges are bold, coloured or underlined; HotXLS can parse and generate rich text runs in both XLS and XLSX formats
Worksheet phonetic fonts
Saving an XLSX worksheet keeps a font that is referenced only by its phonetic settings, its represented name, size and other font properties included
When unused fonts go away, the phonetic font reference is remapped to the kept font's new position; worksheets sharing that font continue to share it, and font index 0 keeps identifying the workbook's default font
This XML persistence behaviour also applies to supported Strict output; it adds no XLSB phonetic metadata support and does not change the handling of malformed references
Construction failures
Should allocating an OOXML rich-text object fail during construction, partial cleanup preserves EOutOfMemory instead of raising a secondary access violation
This covers standalone rich text and comment-owned rich text; normal construction can be retried once memory becomes available
Shared Rich Text
In the classic XLS BIFF8 format, rich text segments sit in the Shared String Table (SST) as trailing coordinate arrays (rgRun blocks) mapped to each string; HotXLS parses these structures so that Far East phonetic runs and particular character highlights survive save cycles
XLSX Rich Text Flows
In OOXML, rich text is expressed through nested text runs inside Shared Strings XML parts; see 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