6#ifndef KISFONTFUNCTIONS_H
7#define KISFONTFUNCTIONS_H
21 QML_NAMED_ELEMENT(FontFunctions)
static Q_INVOKABLE bool isBitmapType(int type)
Because we can't register KoSvgText for qt 6 in this plugin, we'll test if the enum is valid here.
static Q_INVOKABLE bool isPostScriptType(int type)
static Q_INVOKABLE QString sampleTagForQLocale(const QLocale &locale)
Returns the sample tag for a given locale, calls KoWritingSystemUtils.
static Q_INVOKABLE QString wwsFontFamilyName(QString familyName)
Returns the wwsname when present, otherwise returns the family name;.
static Q_INVOKABLE QVariantMap getMapFromQVariant(QVariant var)
static Q_INVOKABLE bool isOpenType(int type)
static Q_INVOKABLE QVariant wwsFontFamilyNameVariant(QString familyName)
Returns the wws name as a variant which can be invalid when not found.