DWRITE_FONT_AXIS_VALUE structure (dwrite_3.h)

Represents a value for a font axis. Used when querying and creating font instances (for example, see IDWriteFontFace5::GetFontAxisValues).

Syntax

struct DWRITE_FONT_AXIS_VALUE {
  DWRITE_FONT_AXIS_TAG axisTag;
  FLOAT                value;
};

Members

axisTag

Type: DWRITE_FONT_AXIS_TAG

The four-character identifier of the font axis (for example, weight, width, slant, italic, and so on).

value

Type: FLOAT

A value for the axis specified in axisTag. The meaning and range of the value depends on the semantics of the particular axis. Certain well-known axes have standard ranges and defaults. Here are some examples.

  • Weight (1..1000, default == 400)
  • Width (>0, default == 100)
  • Slant (-90..90, default == -20)
  • Italic (0 or 1)

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header dwrite_3.h

See also

DWRITE_FONT_AXIS_TAG enumeration

DWRITE_FONT_AXIS_RANGE structure