Class FontFileLoaderNative
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
[Guid("727cad4e-d6af-4c9e-8a08-d695b11caa49")]
public class FontFileLoaderNative : ComObject, FontFileLoader, IUnknown, ICallbackable, IDisposable
- Inheritance
-
FontFileLoaderNative
- Implements
-
IUnknownICallbackable
- Derived
Constructors
FontFileLoaderNative(nint)
public FontFileLoaderNative(nint nativePtr)
Parameters
nativePtr
nint
Methods
CreateStreamFromKey(DataPointer)
Creates a font file stream object that encapsulates an open file resource.
public FontFileStream CreateStreamFromKey(DataPointer fontFileReferenceKey)
Parameters
fontFileReferenceKey
DataPointerA reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize.
Returns
- FontFileStream
a reference to the newly created FontFileStream object.
Remarks
The resource is closed when the last reference to fontFileStream is released.
Operators
explicit operator FontFileLoaderNative(nint)
public static explicit operator FontFileLoaderNative(nint nativePtr)
Parameters
nativePtr
nint