跳转至

ui/core/font_type.h

Defines the IFontType interface for querying font styles. More...

Namespaces

Name
cf
cf::ui
cf::ui::core

Classes

Name
struct cf::ui::core::IFontType
Abstract interface for querying font styles by name.

Detailed Description

Defines the IFontType interface for querying font styles.

Author: Charliechen114514

Version: N/A

Since: N/A

Date: 2026-02-26

Provides an abstract interface for querying QFont objects by name.

Source code

#pragma once
#include "export.h"
#include <QFont>

namespace cf::ui::core {

struct CF_UI_EXPORT IFontType {
    virtual ~IFontType() = default;

    virtual QFont queryTargetFont(const char* name) = 0;
};

} // namespace cf::ui::core

Updated on 2026-03-09 at 10:14:01 +0000