| Category | Glyph coverage testing |
|---|
Purpose — Explicit-length variant of pdfTestGlyphs.
Declarations
C
int32_t __stdcall pdfTestGlyphsExA(PPDF IPDF, int32_t FontHandle, const char* Text, uint32_t Len);
int32_t __stdcall pdfTestGlyphsExW(PPDF IPDF, int32_t FontHandle, const wchar_t* Text, uint32_t Len);
Delphi
function pdfTestGlyphsExA(const IPDF: PPDF; FontHandle: Integer; const Text: PAnsiChar; Len: Cardinal): Integer; stdcall; external 'LumasPdf.dll';
function pdfTestGlyphsExW(const IPDF: PPDF; FontHandle: Integer; const Text: PWideChar; Len: Cardinal): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
FontHandle | Integer | Font to test against. |
Text | string | Text buffer. |
Len | Cardinal | If > 0 and shorter than a NUL-terminated read of Text, truncates to Len; 0 uses the full NUL-terminated string. |
Return value — Same as pdfTestGlyphs.
See also — pdfTestGlyphs
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfTestGlyphsExA(IntPtr IPDF, int FontHandle, [MarshalAs(UnmanagedType.LPStr)] string Text, uint Len);
public static extern int pdfTestGlyphsExW(IntPtr IPDF, int FontHandle, [MarshalAs(UnmanagedType.LPWStr)] string Text, uint Len);
Area
Fonts
Category
Core
Exported names
pdfTestGlyphsExA
pdfTestGlyphsExW
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.