Uniform textbox fonts
Modern TXLSXTextBox objects can own a single Latin font family, point size, bold override and italic override for their complete text
Each override carries a separate presence flag, so explicitly normal text differs from an unspecified source default
Font properties and presence
var Box: TXLSXTextBox;
begin
Box := Book.Sheets[1].AddTextBox('Uniform text', 2, 2, 5, 4);
Box.TextFontName := 'Liberation Sans';
Box.TextFontSize := 11.25;
Box.TextBold := True;
Box.TextItalic := False;
Book.SaveAsODS('uniform.ods');
Book.SaveAs('uniform.xlsx');
end;
Use HasTextFontName, HasTextFontSize, HasTextBold, and HasTextItalic to distinguish known overrides from absent values, and ClearTextFontFormatting to remove all four overrides
A family must be one valid XML string of 1 to 256 characters without surrounding whitespace, control characters, quotes, backslashes, commas or semicolon fallback lists, and a size must be finite from 1 to 4000 points in exact hundredths
ODS import and output
The finite ODS profile resolves declared Latin font faces and bounded paragraph/text style inheritance, then keeps each property only when the actual text is uniformly represented
Known properties may remain available when another property is mixed or unsupported, but the conversion report keeps its appearance-loss warning
Relative sizes, numeric weights, oblique text, unresolved or ambiguous declarations, script metadata, unknown styles and unsupported paragraph formatting do not become invented defaults
See textbox cell geometry for the later finite fixed-extent and fractional cell-offset profile; page anchors stay unsupported
Call GetConversionReport(xlsConversionOpenDocument) before deciding whether an ordinary save is acceptable, or use SaveAsChecked with loss disallowed to reject an incomplete conversion ahead of changing its output sink
Unsupported ODS draw:custom-shape subtrees now produce an explicit unsupported-textbox loss instead of adding their drawing text to the host cell, and never become typed textboxes
Consumers and reverse conversion
ODS output writes represented uniform properties, and ordinary OOXML output writes DrawingML font values together with represented text and outline RGB colours
Semantic snapshots distinguish property presence and explicit normal values, whilst portable scene capture uses the actual represented family, size, bold and italic
Portable text capture specifically rejects an explicit nonopaque text colour because its text record has no alpha channel
Normal XLSX reopen still retains these drawings as raw objects, so the new OOXML writer implies neither typed XLSX reverse import nor lossless conversion from those raw drawings back to ODS
Point sizes and native observations
Library ODS output, OOXML output and typed ODS reopen preserve 11.25 points exactly as 11.25pt and DrawingML 1125
The tested LibreOffice version itself coarsens an imported or natively assigned 11.25-point value to approximately 11.3 points and stores 11.3000001907349pt, whilst the tested 14.5-point value remains exact
These native observations are separate from the library's exact centipoint transport, with no pixel-equality or arbitrary font-substitution guarantee
Mixed rich-text runs, paragraph layout, script fonts, page anchors, arbitrary drawing metadata, controls, Slicer, Timeline, threaded comments and the remaining modern object profiles continue to have their documented boundaries
Version 2.384.360 adds this finite uniform-font profile; empty paragraph separators do not become font samples, whilst explicit styled line breaks retain their source formatting