API referenceFonts

pdfClearHostFonts

Nominally: clear/reset the host (system) font cache or

CategoryFont policy (non-functional)
AvailabilityNon-functional (write-only) — same pattern as the rest of the dead-policy fields in E04

Purpose — Nominally: clear/reset the host (system) font cache or configuration.

Description — Sets FHostFontsCleared := True and nothing else. That flag is never read anywhere else in the codebase — confirmed by grep. It does not affect pdfSetFont's system-font search, nor the process-global system-font cache documented under pdfGetSysFontInfo.

Declarations

C
BOOL32 __stdcall pdfClearHostFonts(PPDF IPDF);
Delphi
function pdfClearHostFonts(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';

Return value — Always TRUE on a valid handle.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Fonts
Category

Core

Exported names

pdfClearHostFonts

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.