You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
726 B
C++

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CGOOGLEFONTS_H
#define CGOOGLEFONTS_H
#include "ifontprovider.h"
class cGoogleFonts : public QObject, public IFontProvider
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "at.windesign.fontManager.IFontProvider/1.0" FILE "googlefonts.json")
Q_INTERFACES(IFontProvider)
public:
cGoogleFonts();
~cGoogleFonts() override;
QString pluginAPIVersion() override;
QString name() override;
QString version() override;
QList<cFontInfo> search(const QString& family, const QString& subset = QString(), const Sort& sort = Sort::popularity) override;
private:
QString m_key;
};
#endif //CGOOGLEFONTS_H