Class MFFontFileEnumerator

Inheritance Relationships

Base Type

  • public IDWriteFontFileEnumerator

Class Documentation

class MFFontFileEnumerator : public IDWriteFontFileEnumerator

Class to implement the DirectWrite Font File Enumerator interface.

I have no idea what this even does or how it does it.

Public Functions

MFFontFileEnumerator(IDWriteFactory *factory)

Sets reference counts and indexes to 0.

HRESULT Initialize(UINT const *collectionKey, UINT32 keySize)

Initializes a the enumerator.

Return

S_OK if the enumerator was initialized without error, otherwise returns E_FAIL.

Parameters
  • collectionKey: - The key to use for the collection.

  • keySize: - The size of the collection key.

~MFFontFileEnumerator()

Releases the current file in the enumerator.

HRESULT __stdcall MFFontFileEnumerator::QueryInterface(REFIID iid, void ** ppvObject)

Queries the interface.

yea im not gonna lie i don’t have a clue what this shit does

ULONG __stdcall MFFontFileEnumerator::AddRef()

Acquires a new reference to the object.

ULONG __stdcall MFFontFileEnumerator::Release()

Releases the object.

HRESULT __stdcall MFFontFileEnumerator::MoveNext(BOOL * hasCurrentFile)

Moves to the next item in the enumerator.

Return

S_OK if the enumerator moved without error, otherwise returns an error code.

Parameters
  • hasCurrentFile: - Whether or not the enumerator was able to create a new font file reference.

HRESULT __stdcall MFFontFileEnumerator::GetCurrentFontFile(IDWriteFontFile ** fontFile)

Retrieves the current font file.

Return

S_OK if the file was retrieved, otherwise returns an error code.

Parameters
  • fontFile: - Pointer to set to the retrieved font file.