[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFileLoaderNative.CreateStreamFromKey

CreateStreamFromKey Method

CreateStreamFromKey(DataPointer)

Creates a font file stream object that encapsulates an open file resource.

Declaration
public FontFileStream CreateStreamFromKey(DataPointer fontFileReferenceKey)
Parameters
Type Name Description
DataPointer fontFileReferenceKey

A 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
Type Description
FontFileStream

a reference to the newly created FontFileStream object.

Implements
Remarks

The resource is closed when the last reference to fontFileStream is released.