LogFont Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines the characteristics of a font for creating rotated text effects.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

public ref class LogFont

This class corresponds to the native Windows CE LOGFONT (logical font) structure, which provides the ability to create angled and other text effects. Values for some of the LogFont fields are defined by the enumerations described in the following table.

Enumeration

Description

CharSet

Specifies the character set of the font.

ClipPrecision

Specifies how to clip characters that are partially outside the clipping region.

PitchAndFamily

Specifies the font family that describes the font in a general way.

OutPrecision

Specifies how closely the output must match the requested height, weight, and other attributes of a font.

Quality

Specifies the quality of the font.

Weight

Specifies the weight of the font.

To create rotated text, create an instance of the LogFont class and set the Escapement field to the desired rotation angle. Note that Escapement specifies the angle in tenths of a degree; for a 45-degree angle you would specify 450.

The Escapement field specifies both the escapement and orientation. You should set Escapement and Orientation to the same value.

The font mapper, a component of Windows CE, finds the physical font that most closely matches values specified for the Height and Weight fields.

The following code example shows how to define a LogFont so that the text runs diagonally across the screen.

No code example is currently available or this language may not be supported.

System::Object
  Microsoft.WindowsCE.Forms::LogFont

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0
Show: