THPDFCABIFormDataFontV1

THPDFCABIFormDataFontV1 = function(UserData: Pointer;
  Family: PAnsiChar; FamilyLength: NativeUInt; Style: UInt32;
  FontIO: PHPDFCABIIOV1): Int32; cdecl;

Return HPDF_STATUS_OK and a complete, versioned random-access read IO table for the actual font program; Family has FamilyLength UTF-8 bytes and is not guaranteed to be NUL-terminated

Style 0 is regular, 1 bold, 2 italic and 3 boldItalic; callbacks run synchronously on the executing thread and are requested once for each family and style used by the actual decoded form data, with the default regular font always requested

For a Windows forms.import operation with fontFamilies, Family contains the exact configured UTF-8 label selected by the decoded rich content; labels compare ASCII case-insensitively and other Unicode characters exactly, whilst unused configured families do not request font programs

The same V1 function pointer and IO layout serve the legacy single-family and named-family profiles; omitting fontFamilies keeps the original single-family selection

Mixed original typed-rich forms.fill requests the actual configured family and style used by its native runs through this same callback; fonts are copied into bounded owned programs before composing the candidate, with shared family/style allocations across fields

Populate StructSize, ABIVersion, Flags, UserData, ReadAt and GetSize; optional IsCancelled is also polled; the returned table is copied, but its callback functions and user data must stay valid until the outer operation returns

The adapter validates size and version, reads fragmented font bytes in bounded chunks, enforces per-font and aggregate working capacity, and puts those actual programs into the regenerated AP resources

Any nonzero font callback or font IO status is propagated without a fallback attempt; invalid or missing programs leave the active document alone; a reported success with incomplete IO remains an error

Optional operation record, Windows exchange, Original typed-rich filling