ComponentOne Bitmap for WPF
Create(Factory,IntPtr,Int32,FontFileLoader) Method

C1.WPF.DX.4 Assembly > C1.Util.DX.DirectWrite Namespace > FontFile Class > Create Method : Create(Factory,IntPtr,Int32,FontFileLoader) Method
A reference to a DirectWrite factory Factory
A font file reference key that uniquely identifies the font file resource during the lifetime of fontFileLoader.
The size of the font file reference key in bytes.
The font file loader that will be used by the font system to load data from the file identified by fontFileReferenceKey.
Creates a reference to an application-specific font file resource.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal factory As Factory, _
   ByVal fontFileReferenceKey As System.IntPtr, _
   ByVal fontFileReferenceKeySize As System.Integer, _
   ByVal fontFileLoader As FontFileLoader _
) As FontFile
public static FontFile Create( 
   Factory factory,
   System.IntPtr fontFileReferenceKey,
   System.int fontFileReferenceKeySize,
   FontFileLoader fontFileLoader
)

Parameters

factory
A reference to a DirectWrite factory Factory
fontFileReferenceKey
A font file reference key that uniquely identifies the font file resource during the lifetime of fontFileLoader.
fontFileReferenceKeySize
The size of the font file reference key in bytes.
fontFileLoader
The font file loader that will be used by the font system to load data from the file identified by fontFileReferenceKey.
Remarks
This function is provided for cases when an application or a document needs to use a private font without having to install it on the system. fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call.
See Also

Reference

FontFile Class
FontFile Members
Overload List