| Category | Interactive text replacement (alt-font registry) |
|---|---|
| Note | real |
Purpose — Select which registered alt font (from psrSetAltFont) is "current" for the context, for psrReplaceSelText to consult.
Declarations
C
BOOL32 __stdcall psrChangeAltFont(PPDF IPDF, IPSR Ctx, uint32_t Handle);
Delphi
function psrChangeAltFont(const IPDF: PPDF; const Ctx: IPSR; Handle: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Ctx | IPSR | Parsed context. |
Handle | Cardinal | Handle from psrSetAltFont to make current. |
Return value — TRUE if Handle is a valid, registered alt-font handle for this context; FALSE otherwise.
See also — psrSetAltFont
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Fonts
Category
Misc
Exported names
psrChangeAltFont
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.