'Declaration Public Function New( _ ByVal attributes As ImGearPDEFontAttrs, _ ByVal firstCharacterIndex As Integer, _ ByVal lastCharacterIndex As Integer, _ ByVal widths() As Short, _ ByVal glyphNames() As String, _ ByVal encodingBaseName As ImGearPDFAtom, _ ByVal fontStream As ImGearPDFStream, _ ByVal length As Integer, _ ByVal encryptedPartLength As Integer, _ ByVal remainingPartLength As Integer, _ Optional ByVal pdfDoc As ImGearPDFDocument _ )
'Usage Dim attributes As ImGearPDEFontAttrs Dim firstCharacterIndex As Integer Dim lastCharacterIndex As Integer Dim widths() As Short Dim glyphNames() As String Dim encodingBaseName As ImGearPDFAtom Dim fontStream As ImGearPDFStream Dim length As Integer Dim encryptedPartLength As Integer Dim remainingPartLength As Integer Dim pdfDoc As ImGearPDFDocument Dim instance As New ImGearPDEFont(attributes, firstCharacterIndex, lastCharacterIndex, widths, glyphNames, encodingBaseName, fontStream, length, encryptedPartLength, remainingPartLength, pdfDoc)
public ImGearPDEFont( ImGearPDEFontAttrs attributes, int firstCharacterIndex, int lastCharacterIndex, short[] widths, string[] glyphNames, ImGearPDFAtom encodingBaseName, ImGearPDFStream fontStream, int length, int encryptedPartLength, int remainingPartLength, ImGearPDFDocument pdfDoc )
public: ImGearPDEFont( ImGearPDEFontAttrs* attributes, int firstCharacterIndex, int lastCharacterIndex, short[]* widths, string*[]* glyphNames, ImGearPDFAtom* encodingBaseName, ImGearPDFStream* fontStream, int length, int encryptedPartLength, int remainingPartLength, ImGearPDFDocument* pdfDoc )
public: ImGearPDEFont( ImGearPDEFontAttrs^ attributes, int firstCharacterIndex, int lastCharacterIndex, array<short>^ widths, array<String^>^ glyphNames, ImGearPDFAtom^ encodingBaseName, ImGearPDFStream^ fontStream, int length, int encryptedPartLength, int remainingPartLength, ImGearPDFDocument^ pdfDoc )
Parameters
- attributes
- ImGearPDEFontAttrsfor the font attributes.
- firstCharacterIndex
- First character index for the widths array, Widths.
- lastCharacterIndex
- Last character index for the widths array, Widths.
- widths
- Widths array.
- glyphNames
- Array of 256 glyph names specifying the custom encoding. If any pointer is null, no encoding information is written for that entry.
- encodingBaseName
- Encoding base name if the encoding is a custom encoding. If encoding is null, encodingBaseName is used as the value of the encoding, and must be one of WinAnsiEncoding, MacRomanEncoding, or MacExpertEncoding. If no encoding value is desired, use null Atom.
- fontStream
- Stream with font information.
- length
- Length in bytes of the ASCII portion of the Type 1 font file after it has been decoded. For other font formats, such as TrueType or CFF, only len1 is used, and it is the size of the font.
- encryptedPartLength
- Length in bytes of the encrypted portion of the Type 1 font file after it has been decoded.
- remainingPartLength
- Length in bytes of the portion of the Type 1 font file that contains the 512 zeros, plus the cleartomark operator, plus any following data.
- pdfDoc
- PDF document in the context of which this font should be created. Pass null to use the scratch doc.
Return Value
The new instance of ImGearPDEFont class object.