Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KOFONTSTORAGE_H
#define KOFONTSTORAGE_H
#include <KisResourceStorage.h>
#include <kritaflake_export.h>
#include <KisStoragePlugin.h>
class KRITAFLAKE_EXPORT KoFontStorage: public KisStoragePlugin
{
public:
KoFontStorage(const QString &location = "fontregistry");
virtual ~KoFontStorage();
KisResourceStorage::ResourceItem resourceItem(const QString &url) override;
KoResourceSP resource(const QString &url) override;
bool supportsVersioning() const override;
QSharedPointer<KisResourceStorage::ResourceIterator> resources(const QString &resourceType) override;
QSharedPointer<KisResourceStorage::TagIterator> tags(const QString &resourceType) override;
bool isValid() const override;
bool loadVersionedResource(KoResourceSP resource) override;
};
#endif // KOFONTSTORAGE_H