Skip to content

PdfType1Font.CreateWithPfmMetrics Method

Overloads

Name Description
CreateWithPfmMetrics(String,String,Double,Boolean) Creates a Type1 font from a combination of .pfm and .pfb files.
CreateWithPfmMetrics(Stream,Stream,Double,Boolean) Creates a Type1 font from a combination of .pfm and .pfb files.

CreateWithPfmMetrics(String,String,Double,Boolean)

Creates a Type1 font from a combination of .pfm and .pfb files.

C#
public static PdfType1Font CreateWithPfmMetrics(string metricsFile, string fontFile, double size, bool embed)

Parameters

metricsFile String

Path to .pfm file.

fontFile String

Path to .pfb file.

size Double

Font size.

embed Boolean

True if the font should be embedded in the Pdf file.

CreateWithPfmMetrics(Stream,Stream,Double,Boolean)

Creates a Type1 font from a combination of .pfm and .pfb files.

C#
public static PdfType1Font CreateWithPfmMetrics(Stream metricsStream, Stream fontStream, double size, bool embed)

Parameters

metricsStream Stream

pfm data stream.

fontStream Stream

pfb data stream.

size Double

Font size.

embed Boolean

If true, the font will be embedded in the PDF file.