| Category | Font state (non-functional) |
|---|---|
| Availability | Non-functional (write-only) — see pdfSetFontWeight |
Purpose — Nominally: read back a user-set font-weight hint.
Declarations
C
int32_t __stdcall pdfGetFontWeight(PPDF IPDF);
Delphi
function pdfGetFontWeight(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';
Return value — Whatever was last passed to pdfSetFontWeight, or the default 1000 (deliberately chosen as an out-of-normal-range sentinel meaning "not set" — note this is not a typical CSS-style weight value like 400/700). See that entry for why this round-trips faithfully but affects nothing.
See also — pdfSetFontWeight
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetFontWeight(IntPtr IPDF);
Area
Fonts
Category
Getters
Exported names
pdfGetFontWeight
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.