PdfType1Font.CreateWithAfmMetrics Method
Overloads
| Name | Description |
|---|---|
| CreateWithAfmMetrics(String,String,Double,Boolean) | Creates a Type1 font from a combination of .afm and .pfb files. |
| CreateWithAfmMetrics(Stream,Stream,Double,Boolean) | Creates a Type1 font from a combination of .afm and .pfb files. |
CreateWithAfmMetrics(String,String,Double,Boolean)
Creates a Type1 font from a combination of .afm and .pfb files.
C#
public static PdfType1Font CreateWithAfmMetrics(string metricsFile, string fontFile, double size, bool embed)
Parameters
metricsFile String
Path to .afm file.
fontFile String
Path to .pfb file.
size Double
Font size.
embed Boolean
True if the font should be embedded in the Pdf file.
CreateWithAfmMetrics(Stream,Stream,Double,Boolean)
Creates a Type1 font from a combination of .afm and .pfb files.
C#
public static PdfType1Font CreateWithAfmMetrics(Stream metricsStream, Stream fontStream, double size, bool embed)
Parameters
metricsStream Stream
afm data stream.
fontStream Stream
pfb data stream.
size Double
Font size.
embed Boolean
If true, the font will be embedded in the PDF file.