ImageGear .NET v25.1 - Updated
ImGearPDEFont Constructor(ImGearPDEFontAttrs,Int32,Int32,Int16[],String[],ImGearPDFAtom,ImGearPDFStream,Int32,Int32,Int32,ImGearPDFDocument)




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDEFont Class > ImGearPDEFont Constructor : ImGearPDEFont Constructor(ImGearPDEFontAttrs,Int32,Int32,Int16[],String[],ImGearPDFAtom,ImGearPDFStream,Int32,Int32,Int32,ImGearPDFDocument)
ImGearPDEFontAttrsfor the font attributes.
First character index for the widths array, Widths.
Last character index for the widths array, Widths.
Widths array.
Array of 256 glyph names specifying the custom encoding. If any pointer is null, no encoding information is written for that entry.
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.
Stream with font information.
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.
Length in bytes of the encrypted portion of the Type 1 font file after it has been decoded.
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.
PDF document in the context of which this font should be created. Pass null to use the scratch doc.
Initializes a new instance of the ImGearPDEFont class.
Syntax
'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)

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.
See Also

Reference

ImGearPDEFont Class
ImGearPDEFont Members
Overload List
ImGearPDEFontAttrs Class
ImGearPDFStream Class
ImGearPDFAtom Class