| Category | Font policy (dead subsystem) |
|---|---|
| Exported names | pdfNoEmbedFontListAddA, pdfNoEmbedFontListAddW, pdfNoEmbedFontListAdd |
| Note | The list is stored but never consulted by embedding logic — see the chapter note |
Purpose — Nominally: blacklist a font name from being embedded.
Description — Genuinely appends FontName to a case-insensitive TStringList (NoEmbedFonts), returning its 1-based position. The list itself behaves correctly for every list-management call in this family — the defect is that nothing reads this list when deciding whether to embed a font.
Declarations
int32_t __stdcall pdfNoEmbedFontListAdd(PPDF IPDF, const char* FontName);
int32_t __stdcall pdfNoEmbedFontListAddA(PPDF IPDF, const char* FontName);
int32_t __stdcall pdfNoEmbedFontListAddW(PPDF IPDF, const wchar_t* FontName);
function pdfNoEmbedFontListAddA(const IPDF: PPDF; FontName: PAnsiChar): Integer; stdcall; external 'LumasPdf.dll';
function pdfNoEmbedFontListAddW(const IPDF: PPDF; FontName: PWideChar): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
FontName | string | Font name to add. |
Return value — 1-based position in the list (i.e. the new count) on success; 0 on an invalid handle.
See also — pdfNoEmbedFontListCount
C# (P/Invoke)
public static extern int pdfNoEmbedFontListAddW(IntPtr IPDF, IntPtr FontName);
public static extern int pdfNoEmbedFontListAdd(IntPtr IPDF, IntPtr FontName);
public static extern int pdfNoEmbedFontListAddA(IntPtr IPDF, IntPtr FontName);
Core
pdfNoEmbedFontListAddW
pdfNoEmbedFontListAdd
pdfNoEmbedFontListAddA
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.