API referenceFonts

pdfSetUseSystemFonts

Nominally: enable/disable falling back to installed system

CategoryFont policy (non-functional)
AvailabilityNon-functional (write-only) — see the chapter note

Purpose — Nominally: enable/disable falling back to installed system fonts.

Description — Stores the flag; pdfSetFont's chain always attempts a system-font match regardless of this setting.

Declarations

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

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
ValueBOOL32Accepted and stored; has no effect on font resolution.

Return value — Always TRUE on a valid handle.

C# (P/Invoke)

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

Setters

Exported names

pdfSetUseSystemFonts

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.