AddType3Glyph
Fonts, Type 3 fonts
Description
Adds or replaces one byte-coded glyph and rebuilds the font encoding, widths, and Unicode extraction map
Syntax
Delphi
Function TPDFlib.AddType3Glyph(FontID, CharCode: Integer; Const GlyphName, UnicodeText: WideString; WidthX, WidthY, LLX, LLY, URX, URY: Double; Const Content: AnsiString): Integer;ActiveX
Function PDFlib::AddType3Glyph(FontID As Long, CharCode As Long, GlyphName As String, UnicodeText As String, WidthX As Double, WidthY As Double, LLX As Double, LLY As Double, URX As Double, URY As Double, Content As String) As LongDLL
int DLAddType3Glyph(int InstanceID, int FontID, int CharCode, const wchar_t *GlyphName, const wchar_t *UnicodeText, double WidthX, double WidthY, double LLX, double LLY, double URX, double URY, const char *Content);Parameters
CharCode is 0 through 255. UnicodeText may contain one character or a multi-character extraction sequence. Content contains PDF graphics operators without d0 or d1
Return values
| 1 | The glyph stream and derived font tables were updated |
|---|---|
| 0 | The font, code, box, reserved name, or duplicate glyph name is invalid |
Remarks
The library writes the required d1 metrics first and isolates the supplied program in balanced q and Q operators. Replacing an existing character code keeps the font handle stable. Only fonts returned by AddType3Font are mutable; Type 3 fonts discovered in a loaded document are rejected