ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 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.

In This Topic
    Create(Factory,IntPtr,Int32,FontFileLoader) Method
    In This Topic
    Creates a reference to an application-specific font file resource.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal factory As Factory, _
       ByVal fontFileReferenceKey As IntPtr, _
       ByVal fontFileReferenceKeySize As Integer, _
       ByVal fontFileLoader As FontFileLoader _
    ) As FontFile

    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