| Category | Form field fonts |
|---|
Purpose — Set a field's /DA font size, preserving the existing font name and color operators.
Declarations
C
BOOL32 __stdcall pdfSetFieldFontSize(PPDF IPDF, uint32_t AField, double FontSize);
Delphi
function pdfSetFieldFontSize(const IPDF: PPDF; AField: Cardinal; FontSize: double): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
AField | Cardinal | Target field handle. |
FontSize | Double | New size. 0 is a valid PDF convention meaning "auto-size" — check the field-rendering guidance (V09 Forms) for how a viewer interprets it. |
Return value — TRUE if AField is valid; FALSE otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Fonts
Category
Forms
Exported names
pdfSetFieldFontSize
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.