|
Krita Source Code Documentation
|
#include <KisFontFunctions.h>
Inheritance diagram for KisFontFunctions:Static Public Member Functions | |
| static Q_INVOKABLE QVariantMap | getMapFromQVariant (QVariant var) |
| 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 | isOpenType (int type) |
| 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 QVariant | wwsFontFamilyNameVariant (QString familyName) |
| Returns the wws name as a variant which can be invalid when not found. | |
Number of functions related to handling FontFamilies inside QML. For some reason, if you have a collection of static functions, they can only be accessed via QML via an Object.
Definition at line 18 of file KisFontFunctions.h.
|
static |
QML can only really use QVariantMaps, so if you have a potential QVariantHash, you can use this function to convert it to a QVariantMap.
Definition at line 33 of file KisFontFunctions.cpp.
|
static |
Because we can't register KoSvgText for qt 6 in this plugin, we'll test if the enum is valid here.
Definition at line 38 of file KisFontFunctions.cpp.
References KoSvgText::BDFFontType.
|
static |
|
static |
|
static |
Returns the sample tag for a given locale, calls KoWritingSystemUtils.
Definition at line 28 of file KisFontFunctions.cpp.
References KoWritingSystemUtils::sampleTagForQLocale().
|
static |
Returns the wwsname when present, otherwise returns the family name;.
Definition at line 10 of file KisFontFunctions.cpp.
References KoFontRegistry::instance(), and KoFontRegistry::wwsNameByFamilyName().
|
static |
Returns the wws name as a variant which can be invalid when not found.
Definition at line 19 of file KisFontFunctions.cpp.
References KoFontRegistry::instance(), and KoFontRegistry::wwsNameByFamilyName().