Fluent-Qt

API-Referenz

Typography

In diesem Header deklarierte öffentliche Typen, Funktionen und Konstanten.

Typography::FontStyle

Vollständige Schriftkonfiguration für eine voreingestellte Schriftstufe, einschließlich statischem styleName und Zeilenhöhe in Pixeln.

Felder

QString styleName

Figma-Stilname, z. B. "Small Regular".

int weight

QFont::Weight

int lineHeight

Absolute Pixelwerte, aus Figma gemessen.

Methoden

Typography

Enumerationen

enum class FontRole

Voreingestellte Fluent-Stufe für Schriftgröße und -stärke.

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

Methoden

inline QString fontRoleKey(FontRole role)

Gibt den stabilen Serialisierungsschlüssel für eine voreingestellte Schriftstufe zurück.

inline const FontStyle& fontStyle(FontRole role)

Gibt die vordefinierte Schriftkonfiguration für eine voreingestellte Schriftstufe zurück.

Typography::FontFamily

Konstanten

Typography::FontSize

Konstanten

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

Konstanten

Typography::LineHeight

Konstanten

Typography::FontWeight

Konstanten

const int Medium = QFont::Medium

500; Fallback nicht von Figma definiert.

const int SemiBold = QFont::DemiBold

600; für Überschriftenstile verwendet.

const int Bold = QFont::Bold

700; Fallback in aktuellen Figma-Stilen nicht definiert.

Typography::Icons

Konstanten

extern const QString GlobalNav

Navigation & Fenster

extern const QString FlipViewPrevH

FlipView-spezifische Pfeile, kleiner und feiner als gewöhnliche Chevrons.

extern const QString Add

Allgemeine Aktionen & Bearbeitung

extern const QString Mail

Kommunikation & Benutzer

extern const QString Wifi

System & Hardware

Typography::Styles

Konstanten