| Category | Font-object metrics |
|---|
Purpose — Width of a single space character at FontSize, for a PFNT snapshot.
Declarations
C
double __stdcall fntGetSpaceWidth(PFNT IFont, double FontSize);
Delphi
function fntGetSpaceWidth(const IFont: PFNT; FontSize: Double): Double; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IFont | PFNT | Snapshot handle. |
FontSize | Double | Point size. |
Return value — Space width in points; 0.0 if IFont is NULL or UnitsPerEm <= 0.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern double fntGetSpaceWidth(IntPtr IFont, double FontSize);
Area
Fonts
Category
Font Services
Exported names
fntGetSpaceWidth
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.