IDWriteInMemoryFontFileLoader interface

Represents a font file loader that can access in-memory fonts. The IDWriteFactory5::CreateInMemoryFontFileLoader method returns an instance of this interface, which the client can use to load in-memory fonts without having to implement a custom loader. A client can also create its own custom implementation, however. In either case, the client is responsible for registering and unregistering the loader using IDWriteFactory::RegisterFontFileLoader and IDWriteFactory::UnregisterFontFileLoader.

Members

The IDWriteInMemoryFontFileLoader interface inherits from IDWriteFontFileLoader. IDWriteInMemoryFontFileLoader also has these types of members:

Methods

The IDWriteInMemoryFontFileLoader interface has these methods.

MethodDescription
CreateInMemoryFontFileReference

Creates a font file reference (IDWriteFontFile object) from an array of bytes.

GetFileCount

Returns the number of font file references that have been created using this loader instance.

 

Requirements

Header

Dwrite_3.h

Library

Dwrite.lib

See also

IDWriteFontFileLoader
Creating a custom font set using font data loaded into memory

 

 

Show: