Fluent-Qt

API リファレンス

Typography

このヘッダーで宣言されている公開の型、関数、定数です。

Typography::FontStyle

静的な styleName とピクセル単位の行の高さを含む、プリセットフォント階層の完全なフォント設定。

フィールド

QString styleName

Figma スタイル名(例: "Small Regular")。

int weight

QFont::Weight

int lineHeight

Figma から計測した絶対ピクセル値。

メソッド

Typography

列挙型

enum class FontRole

プリセットの Fluent フォントサイズおよび太さレベル。

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

メソッド

inline QString fontRoleKey(FontRole role)

プリセットフォント段階の安定したシリアライズキーを返します。

inline const FontStyle& fontStyle(FontRole role)

プリセットフォント段階の定義済みフォント構成を返します。

Typography::FontFamily

定数

Typography::FontSize

定数

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

定数

Typography::LineHeight

定数

Typography::FontWeight

定数

const int Medium = QFont::Medium

500。Figma では未定義のフォールバック。

const int SemiBold = QFont::DemiBold

600。見出しスタイルで使用されます。

const int Bold = QFont::Bold

700。現在の Figma スタイルでは未定義のフォールバック。

Typography::Icons

定数

extern const QString GlobalNav

ナビゲーションとウィンドウ

extern const QString FlipViewPrevH

FlipView 専用の矢印で、通常のシェブロンより小さく細身です。

extern const QString Add

共通アクションと編集

extern const QString Play

メディアとサウンド

extern const QString Mail

通信とユーザー

extern const QString Folder

ファイルとフォルダー

extern const QString Wifi

システムとハードウェア

extern const QString Warning

フィードバックとステータス

extern const QString Brush

デザインとレイアウト

Typography::Styles

定数