IDWriteFontFaceReference interface

Represents a reference to a font face. A uniquely identifying reference to a font, from which you can create a font face to query font metrics and use for rendering. A font face reference consists of a font file, font face index, and font face simulation. The file data may or may not be physically present on the local machine yet.

Members

The IDWriteFontFaceReference interface inherits from the IUnknown interface. IDWriteFontFaceReference also has these types of members:

Methods

The IDWriteFontFaceReference interface has these methods.

MethodDescription
CreateFontFace

Creates a font face from the reference for use with layout, shaping, or rendering.

CreateFontFaceWithSimulations

Creates a font face with alternate font simulations, for example, to explicitly simulate a bold font face out of a regular variant.

EnqueueCharacterDownloadRequest

Adds a request to the font download queue (IDWriteFontDownloadQueue).

EnqueueFileFragmentDownloadRequest

Adds a request to the font download queue (IDWriteFontDownloadQueue).

EnqueueFontDownloadRequest

Adds a request to the font download queue (IDWriteFontDownloadQueue).

EnqueueGlyphDownloadRequest

Adds a request to the font download queue (IDWriteFontDownloadQueue).

GetFileSize

Get the total size of the font face in bytes.

GetFileTime

Get the last modified date.

GetFontFaceIndex

Obtains the zero-based index of the font face in its font file or files. If the font files contain a single face, the return value is zero.

GetFontFile

Obtains the font file representing a font face.

GetLocalFileSize

Get the local size of the font face in bytes, which will always be less than or equal to GetFullSize. If the locality is remote, this value is zero. If full, this value will equal GetFileSize.

GetLocality

Get the locality of this font face reference.

GetSimulations

Obtains the algorithmic style simulation flags of a font face.

 

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | Windows Store apps]

Header

Dwrite_3.h

Library

Dwrite.lib

DLL

Dwrite.dll

 

 

Show: