XFINIUM.PDF Documentation
CreateWithAfmMetrics(String,String,Double,Boolean) Method



Xfinium.Pdf.Graphics Namespace > PdfType1Font Class > CreateWithAfmMetrics Method : CreateWithAfmMetrics(String,String,Double,Boolean) Method
Path to .afm file.
Path to .pfb file.
Font size.
True if the font should be embedded in the Pdf file.
Creates a Type1 font from a combination of .afm and .pfb files.
Syntax
'Declaration
 
Public Overloads Shared Function CreateWithAfmMetrics( _
   ByVal metricsFile As String, _
   ByVal fontFile As String, _
   ByVal size As Double, _
   ByVal embed As Boolean _
) As PdfType1Font
'Usage
 
Dim metricsFile As String
Dim fontFile As String
Dim size As Double
Dim embed As Boolean
Dim value As PdfType1Font
 
value = PdfType1Font.CreateWithAfmMetrics(metricsFile, fontFile, size, embed)
public static PdfType1Font CreateWithAfmMetrics( 
   string metricsFile,
   string fontFile,
   double size,
   bool embed
)
public:
static PdfType1Font^ CreateWithAfmMetrics( 
   String^ metricsFile,
   String^ fontFile,
   double size,
   bool embed
) 

Parameters

metricsFile
Path to .afm file.
fontFile
Path to .pfb file.
size
Font size.
embed
True if the font should be embedded in the Pdf file.

Return Value

A Type1 font object.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfType1Font Class
PdfType1Font Members
Overload List