|
Krita Source Code Documentation
|
Public Member Functions | |
| bool | compareAxes (QHash< QString, KoSvgText::FontFamilyAxis > otherAxes) |
| QStringList | debugInfo () const |
| FontFamilyNode () | |
| bool | hasAnyColor () const |
Static Public Member Functions | |
| static FontFamilyNode | createWWSFamilyNode (const FontFamilyNode &child, const FontFamilyNode &typographic, QStringList existingWWSNames) |
Public Attributes | |
| QHash< QString, KoSvgText::FontFamilyAxis > | axes |
| axes While typical font-files within the same family are defined by having a single weight or width, variable fonts are defined by a range. The axis info abstracts both into a structure of a range between two values, which in turn means that if we take a family as a whole, we can combine all axes to find the total range of variations. | |
| bool | colorBitMap = false |
| bool | colorClrV0 = false |
| bool | colorClrV1 = false |
| bool | colorSVG = false |
| int | fileIndex = 0 |
| QString | fileName |
| QString | fontFamily |
| QString | fontStyle |
| bool | isItalic = false |
| bool | isOblique = false |
| bool | isVariable = false |
| QDateTime | lastModified |
| Other files that seem related. These might be duplicate font files, or fonts where only the tech differs. | |
| QHash< QLocale, QString > | localizedFontFamilies |
| Last time the file was modified. | |
| QHash< QLocale, QString > | localizedFontStyle |
| QHash< QLocale, QString > | localizedFullName |
| QHash< QLocale, QString > | localizedTypographicStyle |
| QHash< QLocale, QString > | localizedWWSStyle |
| QStringList | otherFiles |
| Languages supported, according to fontconfig. | |
| QHash< int, QStringList > | pixelSizes |
| pixelSizes This is only used for bitmap fonts, when searching we try to return the files associated with the appropriate pixelsize first, so that usage wise it'll feel identical to using an opentype font with multiple bitmap strikes. | |
| QHash< QString, QString > | sampleStrings |
| Truetype collections have indices that need to be checked against. | |
| FontFamilySizeInfo | sizeInfo |
| sizeInfo This is only really used to ensure that sizes get sorted into different WWS families, as otherwise they're unselectable. We could take them into account when searching, but the CSS-WG hasn't explicitly requested or provided any guidance therein. | |
| QList< KoSvgText::FontFamilyStyleInfo > | styleInfo |
| styleInfo This abstracts both font families that consist of many separate font-files and variable fonts with many separate instances, and the hybrid of the two (commonly, if there's an italic type, it is put into a separate variable font file from the regular type). | |
| QList< QLocale > | supportedLanguages |
| sample string used to generate the preview; | |
| KoSvgText::FontFormatType | type = KoSvgText::UnknownFontType |
Definition at line 65 of file KoFFWWSConverter.cpp.
|
inline |
Definition at line 67 of file KoFFWWSConverter.cpp.
|
inline |
Definition at line 132 of file KoFFWWSConverter.cpp.
References axes, qFuzzyCompare(), and KoSvgText::FontFamilyAxis::value.
|
inlinestatic |
Definition at line 146 of file KoFFWWSConverter.cpp.
References colorBitMap, colorClrV0, colorClrV1, colorSVG, fontFamily, fontStyle, isVariable, localizedFontFamilies, localizedTypographicStyle, KoSvgText::OpenTypeFontType, and type.
| QStringList FontFamilyNode::debugInfo | ( | ) | const |
Definition at line 189 of file KoFFWWSConverter.cpp.
References axes, FontFamilySizeInfo::debugInfo(), KoSvgText::FontFamilyAxis::debugInfo(), fileIndex, fileName, fontFamily, fontStyle, FontFamilySizeInfo::high, isItalic, isOblique, localizedFullName, FontFamilySizeInfo::low, otherFiles, pixelSizes, sizeInfo, styleInfo, type, and KoSvgText::FontFamilyAxis::value.
|
inline |
Definition at line 182 of file KoFFWWSConverter.cpp.
References colorBitMap, colorClrV0, colorClrV1, and colorSVG.
| QHash<QString, KoSvgText::FontFamilyAxis> FontFamilyNode::axes |
axes While typical font-files within the same family are defined by having a single weight or width, variable fonts are defined by a range. The axis info abstracts both into a structure of a range between two values, which in turn means that if we take a family as a whole, we can combine all axes to find the total range of variations.
Definition at line 99 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::colorBitMap = false |
Definition at line 180 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::colorClrV0 = false |
Definition at line 177 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::colorClrV1 = false |
Definition at line 178 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::colorSVG = false |
Definition at line 179 of file KoFFWWSConverter.cpp.
| int FontFamilyNode::fileIndex = 0 |
Definition at line 72 of file KoFFWWSConverter.cpp.
| QString FontFamilyNode::fileName |
Definition at line 71 of file KoFFWWSConverter.cpp.
| QString FontFamilyNode::fontFamily |
Definition at line 69 of file KoFFWWSConverter.cpp.
| QString FontFamilyNode::fontStyle |
Definition at line 70 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::isItalic = false |
Definition at line 129 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::isOblique = false |
Definition at line 130 of file KoFFWWSConverter.cpp.
| bool FontFamilyNode::isVariable = false |
Definition at line 176 of file KoFFWWSConverter.cpp.
| QDateTime FontFamilyNode::lastModified |
Other files that seem related. These might be duplicate font files, or fonts where only the tech differs.
Definition at line 78 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilyNode::localizedFontFamilies |
Last time the file was modified.
Definition at line 82 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilyNode::localizedFontStyle |
Definition at line 85 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilyNode::localizedFullName |
Definition at line 90 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilyNode::localizedTypographicStyle |
Definition at line 86 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilyNode::localizedWWSStyle |
Definition at line 87 of file KoFFWWSConverter.cpp.
| QStringList FontFamilyNode::otherFiles |
Languages supported, according to fontconfig.
Definition at line 77 of file KoFFWWSConverter.cpp.
| QHash<int, QStringList> FontFamilyNode::pixelSizes |
pixelSizes This is only used for bitmap fonts, when searching we try to return the files associated with the appropriate pixelsize first, so that usage wise it'll feel identical to using an opentype font with multiple bitmap strikes.
int: the pixel size. QStringList: list of files associated with that pixel-size.
Definition at line 118 of file KoFFWWSConverter.cpp.
| QHash<QString, QString> FontFamilyNode::sampleStrings |
Truetype collections have indices that need to be checked against.
Definition at line 74 of file KoFFWWSConverter.cpp.
| FontFamilySizeInfo FontFamilyNode::sizeInfo |
sizeInfo This is only really used to ensure that sizes get sorted into different WWS families, as otherwise they're unselectable. We could take them into account when searching, but the CSS-WG hasn't explicitly requested or provided any guidance therein.
Definition at line 125 of file KoFFWWSConverter.cpp.
| QList<KoSvgText::FontFamilyStyleInfo> FontFamilyNode::styleInfo |
styleInfo This abstracts both font families that consist of many separate font-files and variable fonts with many separate instances, and the hybrid of the two (commonly, if there's an italic type, it is put into a separate variable font file from the regular type).
Definition at line 107 of file KoFFWWSConverter.cpp.
| QList<QLocale> FontFamilyNode::supportedLanguages |
sample string used to generate the preview;
Definition at line 75 of file KoFFWWSConverter.cpp.
| KoSvgText::FontFormatType FontFamilyNode::type = KoSvgText::UnknownFontType |
Definition at line 175 of file KoFFWWSConverter.cpp.