| Category | Font policy (non-functional) |
|---|---|
| Availability | Non-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
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Mode | Integer | 0..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.