51 QString
type()
const override {
74 QString
url()
const override {
114 QString familyName = url;
116 if (familyName.startsWith(prefix)) {
117 familyName.remove(0, prefix.size());
123 fam->updateThumbnail();
QSharedPointer< KoFontFamily > KoFontFamilySP
KIS_DECLARE_STATIC_INITIALIZER
bool hasNext() const override
void next() override
The iterator is only valid if next() has been called at least once.
KoResourceSP resourceImpl() const override
This only loads the resource when called.
QScopedPointer< QListIterator< KoFontFamilyWWSRepresentation > > m_representationIterator
QString type() const override
KoFontFamilySP m_currentResource
QDateTime lastModified() const override
FontIterator(const QString resourceType)
QString url() const override
KisTagSP tag() const override
A tag object on which we can set properties and which we can save.
FontTagIterator(QVector< KisTagSP >, const QString &resourceType)
bool hasNext() const override
void next() override
The iterator is only valid if next() has been called at least once.
void addStoragePluginFactory(KisResourceStorage::StorageType storageType, KisStoragePluginFactoryBase *factory)
static KisStoragePluginRegistry * instance()
The KoFontFamily class Abstract representation of a Weight/Width/Slant font family,...
std::optional< KoFontFamilyWWSRepresentation > representationByFamilyName(const QString &familyName) const
representationByFamilyName This simplifies retrieving the representation for a given font family.
QList< KoFontFamilyWWSRepresentation > collectRepresentations() const
collectRepresentations
static KoFontRegistry * instance()
bool isValid() const override
bool loadVersionedResource(KoResourceSP resource) override
KoResourceSP resource(const QString &url) override
KoFontStorage(const QString &location="fontregistry")
KisResourceStorage::ResourceItem resourceItem(const QString &url) override
bool supportsVersioning() const override
QSharedPointer< KisResourceStorage::TagIterator > tags(const QString &resourceType) override
QSharedPointer< KisResourceStorage::ResourceIterator > resources(const QString &resourceType) override
const QString FontFamilies
A resource item is simply an entry in the storage,.