PDFView4NET WinForms Edition
PostScriptFont Constructor(String,String,Double,Boolean)




O2S.Components.PDFView4NET.Graphics.Fonts Namespace > PostScriptFont Class > PostScriptFont Constructor : PostScriptFont Constructor(String,String,Double,Boolean)
the full path to file containing the metrics for this PostScript font.
the full path to file containing the binary representation of this PostScript font.
the size of the font, in points.
a flag specifying whether the font should be embedded in the pdf file or not.
Initializes a new PostScriptFont object based on the given metrics and font data files.
Syntax
'Declaration
 
Public Function New( _
   ByVal metricsFile As String, _
   ByVal fontDataFile As String, _
   ByVal size As Double, _
   ByVal embed As Boolean _
)
'Usage
 
Dim metricsFile As String
Dim fontDataFile As String
Dim size As Double
Dim embed As Boolean
 
Dim instance As New PostScriptFont(metricsFile, fontDataFile, size, embed)
public PostScriptFont( 
   string metricsFile,
   string fontDataFile,
   double size,
   bool embed
)
public: PostScriptFont( 
   string* metricsFile,
   string* fontDataFile,
   double size,
   bool embed
)
public:
PostScriptFont( 
   String^ metricsFile,
   String^ fontDataFile,
   double size,
   bool embed
)

Parameters

metricsFile
the full path to file containing the metrics for this PostScript font.
fontDataFile
the full path to file containing the binary representation of this PostScript font.
size
the size of the font, in points.
embed
a flag specifying whether the font should be embedded in the pdf file or not.
Remarks
A PostScript font is always loaded from disk. The metrics of the font are specified using an .afm file (Adobe Font Metrics) or a .pfm file (Printer Font Metrics). The binary representation of the font is specified using a .pfb file (Printer Font Binary).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PostScriptFont Class
PostScriptFont Members
Overload List