AddType3FontResource
Fonts, PDF resources
Description
Adds or replaces a named indirect object in the resource dictionary shared by all glyph programs of a Type 3 font
Syntax
Delphi
Function TPDFlib.AddType3FontResource(FontID: Integer; Const ResourceType, ResourceName: WideString; ObjectNumber, GenerationNumber: Integer): Integer;ActiveX
Function PDFlib::AddType3FontResource(FontID As Long, ResourceType As String, ResourceName As String, ObjectNumber As Long, GenerationNumber As Long) As LongDLL
int DLAddType3FontResource(int InstanceID, int FontID, const wchar_t* ResourceType, const wchar_t* ResourceName, int ObjectNumber, int GenerationNumber);
int DLAddType3FontResourceA(int InstanceID, int FontID, const char* ResourceType, const char* ResourceName, int ObjectNumber, int GenerationNumber);Parameters
| FontID | Handle of a Type 3 font created by AddType3Font |
|---|---|
| ResourceType | Font, XObject, ColorSpace, Pattern, Shading, ExtGState, or Properties, compared case-insensitively |
| ResourceName | Resource name used as /ResourceName in glyph content; a leading slash is ignored and an empty name is rejected |
| ObjectNumber | Positive object number of an existing indirect object in the selected document |
| GenerationNumber | Non-negative generation number of that object |
Return values
| 1 | The resource entry was added or replaced |
|---|---|
| 0 | The font, category, name, or object reference is invalid |
Remarks
Glyph content uses the supplied resource as /ResourceName. Font object numbers are available from GetFontObjectNumber; image enumeration and low-level object APIs expose other resource object numbers