API referenceFonts

psrChangeAltFont

Select which registered alt font (from

CategoryInteractive text replacement (alt-font registry)
Notereal

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

ParameterTypeDescription
IPDFPPDFInstance handle.
CtxIPSRParsed context.
HandleCardinalHandle from psrSetAltFont to make current.

Return valueTRUE if Handle is a valid, registered alt-font handle for this context; FALSE otherwise.

See alsopsrSetAltFont

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.