Fluent-Qt

API reference

Typography

Public types, functions, and constants declared in this header.

Typography::FontStyle

Complete font metrics for one Fluent typography role.

Methods

Fields

QString styleName

Figma style name, e.g. "Small Regular".

int weight

QFont::Weight

int lineHeight

Absolute pixels measured from Figma.

Typography

Methods

inline QString fontRoleKey(FontRole role)

Returns the stable serialization key for a typography role.

inline const FontStyle& fontStyle(FontRole role)

Resolves the immutable metrics for a typography role.

Enumerations

enum class FontRole

Strongly typed Fluent typography role.

  • Caption
  • Body
  • BodyStrong
  • BodyLarge
  • BodyLargeStrong
  • Subtitle
  • Title
  • TitleLarge
  • Display

Typography::FontFamily

Constants

Typography::FontSize

Constants

const int Caption = 12

Small Regular 12/16

const int Body = 14

Text Regular 14/20

const int BodyStrong = 14

Text Semibold 14/20

const int BodyLarge = 18

Text Regular 18/24

const int Subtitle = 20

Display Semibold 20/28

const int Title = 28

Display Semibold 28/36

const int TitleLarge = 40

Display Semibold 40/52

const int Display = 68

Display Semibold 68/92

Typography::IconSize

Constants

Typography::LineHeight

Constants

Typography::FontWeight

Constants

const int Medium = QFont::Medium

500; fallback not defined by Figma.

const int SemiBold = QFont::DemiBold

600; used by heading roles.

const int Bold = QFont::Bold

700; fallback not defined by current Figma styles.

Typography::Icons

Constants

extern const QString FlipViewPrevH

FlipView-specific arrows, smaller and lighter than common chevrons.

extern const QString Add

Common Actions & Editing

extern const QString Mail

Communication & User

extern const QString Wifi

System & Hardware

Typography::Styles

Constants