DWRITE_OVERHANG_METRICS structure (dwrite.h)

Indicates how much any visible DIPs (device independent pixels) overshoot each side of the layout or inline objects.

Positive overhangs indicate that the visible area extends outside the layout box or inline object, while negative values mean there is whitespace inside. The returned values are unaffected by rendering transforms or pixel snapping. Additionally, they may not exactly match the final target's pixel bounds after applying grid fitting and hinting.

Syntax

struct DWRITE_OVERHANG_METRICS {
  FLOAT left;
  FLOAT top;
  FLOAT right;
  FLOAT bottom;
};

Members

left

Type: FLOAT

The distance from the left-most visible DIP to its left-alignment edge.

top

Type: FLOAT

The distance from the top-most visible DIP to its top alignment edge.

right

Type: FLOAT

The distance from the right-most visible DIP to its right-alignment edge.

bottom

Type: FLOAT

The distance from the bottom-most visible DIP to its lower-alignment edge.

Requirements

Requirement Value
Header dwrite.h