API referenceFonts

pdfSetFontSelMode

Nominally: choose a font-selection strategy mode.

CategoryFont policy (non-functional)
AvailabilityNon-functional (write-only), with real input clamping — see the chapter note

Purpose — Nominally: choose a font-selection strategy mode.

Description — Stores Mode, clamped to 0..2 (out-of-range values reset to 1) — the clamping is real, but the stored value is never consulted by the resolution chain.

Declarations

C
BOOL32 __stdcall pdfSetFontSelMode(PPDF IPDF, int32_t Mode);
Delphi
function pdfSetFontSelMode(const IPDF: PPDF; Mode: Integer): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
ModeInteger0..2; out-of-range values silently become 1. Stored, not consulted.

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

pdfSetFontSelMode

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.