API referenceFonts

pdfTestGlyphsEx

Explicit-length variant of

CategoryGlyph 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

ParameterTypeDescription
IPDFPPDFInstance handle.
FontHandleIntegerFont to test against.
TextstringText buffer.
LenCardinalIf > 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 alsopdfTestGlyphs

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.