IDWriteGdiInterop interface

Provides interoperability with GDI, such as methods to convert a font face to a LOGFONT structure, or to convert a GDI font description into a font face. It is also used to create bitmap render target objects.

Methods

The IDWriteGdiInterop interface has these methods.

Method Description
IDWriteGdiInterop::ConvertFontFaceToLOGFONT Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font.
IDWriteGdiInterop::ConvertFontToLOGFONT Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font.
IDWriteGdiInterop::CreateBitmapRenderTarget Creates an object that encapsulates a bitmap and memory DC (device context) which can be used for rendering glyphs.
IDWriteGdiInterop::CreateFontFaceFromHdc Creates an IDWriteFontFace object that corresponds to the currently selected HFONT of the specified HDC.
IDWriteGdiInterop::CreateFontFromLOGFONT Creates a font object that matches the properties specified by the LOGFONT structure.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h

See Also

Interoperating with GDI