API referenceFonts

pdfChangeFontSize

Change the point size of the currently active font.

CategoryFont selection

Purpose — Change the point size of the currently active font.

Declarations

C
BOOL32 __stdcall pdfChangeFontSize(PPDF IPDF, double Size);
Delphi
function pdfChangeFontSize(const IPDF: PPDF; Size: Double): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
SizeDoubleNew size; values <= 0 are silently ignored — the current size is left unchanged, and the call still reports success.

Return value — Always TRUE on a valid handle.

See alsopdfGetFontSize

C# (P/Invoke)

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

Core

Exported names

pdfChangeFontSize

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.