THPDFHeadlessDocument.SetTextFieldValueWithFamilies
procedure SetTextFieldValueWithFamilies(FieldIndex: Integer;
const Text: UnicodeString;
const Families: THPDFHeadlessRichTextFontFamilies;
const Options: THPDFHeadlessTextAppearanceOptions);
Generate all text-field widget appearances with supplied regular-family fallback and preserve plain V and field flags; password fields paint their actual bullet mask and file-select fields retain text behavior
The fallback option defaults to False; a native call explicitly regenerates the appearance, including when the existing value is equal, and requires the same editable-field, encryption, authenticated DocMDP and FieldMDP permissions as the existing single-font method
With FallbackFontFamilies and ShapeComplexText enabled, comb fields can combine supplied fonts and complex shaping; inherited positive MaxLen defines Unicode scalar cells, so supplementary characters use one cell and a shaped cluster covering k scalars occupies k cells
All participating fonts use one complete-text bidi grid, alignment, effective font size and baseline; relative glyph geometry within clusters, widget rotation and clipping are retained, while the plain logical field value and the shaped appearance's ActualText preserve the complete input
See the family builder for advance-and-ink centering, automatic sizing and extraction boundaries; the existing direct comb layout remains available
Generation is transactional for the loaded field graph; a missing glyph, invalid font, budget failure or cancellation preserves the previous field and appearances
Use SaveToFile to publish the updated graph to an independent destination