ImageGear Professional for Windows ActiveX
CreatePDEFont Method

Description:

Creates a new PDE Font from the specified parameters.

The PDE Font may be represented as an embedded font (a FontFile entry in the font descriptor of the PDF file). To create a PDE Font that is stored as an embedded font, the FontFile stream may be passed in FontStream, and the Len1, Len2, and Len3 parameters contain the Length1, Length2, and Length3 values of the FontFile stream attributes dictionary. See Section 5.8 in the PDF Reference for more information about embedded fonts.

Syntax:

      CreatePDEFont (Attributes As IGPDEFontAttrs, FirstCharIndex As
long, LastCharIndex As long, Widths As IGIntegerArray, Encoding
As IGStringArray, EncodingBaseName As IGPDFAtom, FontStream As
IGPDFStream, Len1 As long, Len2 As long, Len3 As long) As
IGPDEFont

Parameters:

Name Description
Attributes IGPDEFontAttrs for the font attributes.
FirstCharIndex First character index for the widths array, Widths.
LastCharIndex Last character index for the widths array, Widths.
Widths Widths array.
Encoding 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.
Len1 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.
Len2 Length in bytes of the encrypted portion of the Type 1 font file after it has been decoded.
Len3 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.

Return Value:

IGPDEFont Object

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback