|
Krita Source Code Documentation
|
#include "KoFFWWSConverter.h"#include <KisForest.h>#include <KisStaticInitializer.h>#include <kis_assert.h>#include <hb.h>#include <hb-ft.h>#include <QFileInfo>#include <KoWritingSystemUtils.h>#include <KoCssTextUtils.h>Go to the source code of this file.
Classes | |
| struct | FontFamilyNode |
| struct | FontFamilySizeInfo |
| The FontFamilySizeInfo class Some font-families have different designs for different sizes. These are largely differences in weight, spacing and small glyph changes. There's four places opentype stores the design size information: More... | |
| struct | KoFFWWSConverter::Private |
Functions | |
| KoFontFamilyWWSRepresentation | createRepresentation (KisForest< FontFamilyNode >::child_iterator wws, KisForest< FontFamilyNode >::child_iterator typographic, bool singleFamily) |
| QVector< FontFamilyNode > | findNodesByAxis (const QVector< FontFamilyNode > &nodes, const QString axisTag, const qreal &value, const qreal &defaultValue, const qreal &defaultValueUpper) |
| QDebug | operator<< (QDebug dbg, const FontFamilyNode &node) |
| QDebug | operator<< (QDebug dbg, const FontFamilySizeInfo &info) |
| KisForest< FontFamilyNode >::composition_iterator | searchNodes (KisForest< FontFamilyNode >::composition_iterator it, KisForest< FontFamilyNode >::composition_iterator endIt, const QString family) |
Variables | |
| const QString | ITALIC_TAG = "ital" |
| const QString | OPTICAL_TAG = "opsz" |
| constexpr unsigned | OS2_BOLD = 1u << 5 |
| Is italic. | |
| constexpr unsigned | OS2_ITALIC = 1u << 0 |
| constexpr unsigned | OS2_OBLIQUE = 1u << 9 |
| Indicates that the given font is primarily a WWS family and requires no further processing. | |
| constexpr unsigned | OS2_REGULAR = 1u << 6 |
| Is bold. | |
| constexpr unsigned | OS2_USE_TYPO_METRICS = 1u << 7 |
| constexpr unsigned | OS2_WWS = 1u << 8 |
| Is truly regular (instead of italic or oblique) | |
| const QString | SLANT_TAG = "slnt" |
| const QString | WEIGHT_TAG = "wght" |
| const QString | WIDTH_TAG = "wdth" |
| KoFontFamilyWWSRepresentation createRepresentation | ( | KisForest< FontFamilyNode >::child_iterator | wws, |
| KisForest< FontFamilyNode >::child_iterator | typographic, | ||
| bool | singleFamily ) |
Definition at line 872 of file KoFFWWSConverter.cpp.
References KoFontFamilyWWSRepresentation::axes, KoSvgText::FontFamilyAxis::axisHidden, KoFontFamilyWWSRepresentation::colorBitMap, KoFontFamilyWWSRepresentation::colorClrV0, KoFontFamilyWWSRepresentation::colorClrV1, KoFontFamilyWWSRepresentation::colorSVG, KoSvgText::FontFamilyAxis::defaultValue, KoFontFamilyWWSRepresentation::fontFamilyName, KoSvgText::FontFamilyStyleInfo::instanceCoords, KoSvgText::FontFamilyStyleInfo::isItalic, KoSvgText::FontFamilyStyleInfo::isOblique, KoFontFamilyWWSRepresentation::isVariable, KoFontFamilyWWSRepresentation::lastModified, KoFontFamilyWWSRepresentation::localizedFontFamilyNames, KoSvgText::FontFamilyAxis::localizedLabels, KoSvgText::FontFamilyStyleInfo::localizedLabels, KoFontFamilyWWSRepresentation::localizedTypographicFamily, KoFontFamilyWWSRepresentation::localizedTypographicStyles, KoSvgText::FontFamilyAxis::max, KoSvgText::FontFamilyAxis::min, KoFontFamilyWWSRepresentation::sampleStrings, KoFontFamilyWWSRepresentation::styles, KoFontFamilyWWSRepresentation::supportedLanguages, KoSvgText::FontFamilyAxis::tag, KoFontFamilyWWSRepresentation::type, KoFontFamilyWWSRepresentation::typographicFamilyName, and KoSvgText::FontFamilyAxis::value.
| QVector< FontFamilyNode > findNodesByAxis | ( | const QVector< FontFamilyNode > & | nodes, |
| const QString | axisTag, | ||
| const qreal & | value, | ||
| const qreal & | defaultValue, | ||
| const qreal & | defaultValueUpper ) |
Definition at line 1037 of file KoFFWWSConverter.cpp.
References FontFamilyNode::axes, KoCssTextUtils::cssSelectFontStyleValue(), ITALIC_TAG, KoSvgText::FontFamilyAxis::max, KoSvgText::FontFamilyAxis::min, SLANT_TAG, KoSvgText::FontFamilyAxis::value, value(), and KoSvgText::FontFamilyAxis::variableAxis.
| QDebug operator<< | ( | QDebug | dbg, |
| const FontFamilyNode & | node ) |
Definition at line 217 of file KoFFWWSConverter.cpp.
References FontFamilyNode::debugInfo().
| QDebug operator<< | ( | QDebug | dbg, |
| const FontFamilySizeInfo & | info ) |
Definition at line 60 of file KoFFWWSConverter.cpp.
References FontFamilySizeInfo::debugInfo().
| KisForest< FontFamilyNode >::composition_iterator searchNodes | ( | KisForest< FontFamilyNode >::composition_iterator | it, |
| KisForest< FontFamilyNode >::composition_iterator | endIt, | ||
| const QString | family ) |
Definition at line 961 of file KoFFWWSConverter.cpp.
References KisForestDetail::Enter, and KisForestDetail::CompositionIterator< T, is_const >::state().
| const QString ITALIC_TAG = "ital" |
Definition at line 280 of file KoFFWWSConverter.cpp.
| const QString OPTICAL_TAG = "opsz" |
Definition at line 281 of file KoFFWWSConverter.cpp.
|
constexpr |
Is italic.
Definition at line 271 of file KoFFWWSConverter.cpp.
|
constexpr |
Definition at line 270 of file KoFFWWSConverter.cpp.
|
constexpr |
Indicates that the given font is primarily a WWS family and requires no further processing.
Definition at line 274 of file KoFFWWSConverter.cpp.
|
constexpr |
Is bold.
Definition at line 272 of file KoFFWWSConverter.cpp.
|
constexpr |
Definition at line 275 of file KoFFWWSConverter.cpp.
|
constexpr |
Is truly regular (instead of italic or oblique)
Definition at line 273 of file KoFFWWSConverter.cpp.
| const QString SLANT_TAG = "slnt" |
Definition at line 279 of file KoFFWWSConverter.cpp.
| const QString WEIGHT_TAG = "wght" |
Definition at line 277 of file KoFFWWSConverter.cpp.
| const QString WIDTH_TAG = "wdth" |
Definition at line 278 of file KoFFWWSConverter.cpp.