Struct FontStyle

Struct Documentation

struct FontStyle

Requested numeric OpenType weight and italic state; nearest available faces are selected, without synthesizing a style.

Public Members

std::uint16_t weight = 400

Requested weight: 400 is Regular, 700 is Bold; the closest available weight is used.

bool italic = false

Request italic when true; available italic state is preferred before weight distance.