PostScriptFont Constructor(String,String,Double,Boolean)
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 )
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 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also