Share via


Gdi::CreateFontIndirectW_I (Windows CE 5.0)

Send Feedback

This method creates a logical font that has the characteristics specified in the specified LOGFONT structure. You can subsequently select the font as the current font for any device context.

static WINGDIAPI HFONT WINAPI CreateFontIndirectW_I(const LOGFONT* lplf);

Parameters

  • lplf
    [in] Long pointer to a LOGFONT structure that defines the characteristics of the logical font.

Return Values

A handle to a logical font indicates success.

NULL indicates failure.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the CreateFontIndirect function.

The Gdi::CreateFontIndirectW_I method creates a logical font with the characteristics specified in the LOGFONT structure.

When you select this font by using the Gdi::SelectObject_I method, the font mapper for GDI attempts to match the logical font with an existing physical font.

If the font mapper fails to find an exact match, the font mapper provides an alternative, the characteristics of which match as many of the requested characteristics as possible.

When you no longer need the font, call the Gdi::DeleteObject_I method to delete the font.

Windows CE supports systems that use either TrueType or raster fonts, but not both. The font type, raster or TrueType, is chosen at system design time, and cannot be changed by an application.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

Gdi | CreateFontIndirect | Gdi::DeleteObject_I | Gdi::SelectObject_I | LOGFONT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.