|
Krita Source Code Documentation
|
#include "FontStyleModel.h"#include <QDebug>#include <resources/KoFontFamily.h>#include <KisResourceModel.h>#include <KoFontRegistry.h>#include <lager/KoSvgTextPropertiesModel.h>#include <KoCssTextUtils.h>Go to the source code of this file.
Classes | |
| struct | FontStyleModel::Private |
Functions | |
| QHash< int, KoSvgText::FontFamilyStyleInfo > | searchAxisTag (const QString &tag, const qreal &value, const QVector< qreal > &values, const qreal &defaultVal, const qreal &defaultValUpper, const QHash< int, KoSvgText::FontFamilyStyleInfo > &styles) |
| static bool | styleLowerThan (const KoSvgText::FontFamilyStyleInfo &a, const KoSvgText::FontFamilyStyleInfo &b) |
Variables | |
| const QString | ITALIC_TAG = "ital" |
| const QString | OPTICAL_TAG = "opsz" |
| const QString | SLANT_TAG = "slnt" |
| const QString | WEIGHT_TAG = "wght" |
| const QString | WIDTH_TAG = "wdth" |
| QHash< int, KoSvgText::FontFamilyStyleInfo > searchAxisTag | ( | const QString & | tag, |
| const qreal & | value, | ||
| const QVector< qreal > & | values, | ||
| const qreal & | defaultVal, | ||
| const qreal & | defaultValUpper, | ||
| const QHash< int, KoSvgText::FontFamilyStyleInfo > & | styles ) |
Definition at line 95 of file FontStyleModel.cpp.
References KoCssTextUtils::cssSelectFontStyleValue(), ITALIC_TAG, SLANT_TAG, and value().
|
static |
Definition at line 41 of file FontStyleModel.cpp.
References KoSvgText::FontFamilyStyleInfo::instanceCoords, KoSvgText::FontFamilyStyleInfo::isItalic, KoSvgText::FontFamilyStyleInfo::isOblique, ITALIC_TAG, and SLANT_TAG.
| const QString ITALIC_TAG = "ital" |
Definition at line 16 of file FontStyleModel.cpp.
| const QString OPTICAL_TAG = "opsz" |
Definition at line 17 of file FontStyleModel.cpp.
| const QString SLANT_TAG = "slnt" |
Definition at line 15 of file FontStyleModel.cpp.
| const QString WEIGHT_TAG = "wght" |
Definition at line 13 of file FontStyleModel.cpp.
| const QString WIDTH_TAG = "wdth" |
Definition at line 14 of file FontStyleModel.cpp.