|
Krita Source Code Documentation
|
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...
Public Member Functions | |
| bool | compare (const FontFamilySizeInfo &other) |
| QString | debugInfo () const |
Public Attributes | |
| qreal | designSize = 0 |
| qreal | high = -1 |
| bool | isSet = false |
| QHash< QLocale, QString > | localizedLabels |
| qreal | low = -1 |
| bool | os2table = false |
| Whether the size info is set. | |
| int | subFamilyID = 0 |
| Whether this is using the OS2 table or the GPOS Size feature. | |
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:
Of these, 1 and 4 are supported properly, but we need to keep track of 2 and 3 as well, to ensure that these fonts are still selectable in the font picker.
Definition at line 31 of file KoFFWWSConverter.cpp.
|
inline |
Definition at line 48 of file KoFFWWSConverter.cpp.
References designSize, high, isSet, low, os2table, and qFuzzyCompare().
|
inline |
Definition at line 40 of file KoFFWWSConverter.cpp.
References designSize, high, localizedLabels, low, and os2table.
| qreal FontFamilySizeInfo::designSize = 0 |
Definition at line 38 of file KoFFWWSConverter.cpp.
| qreal FontFamilySizeInfo::high = -1 |
Definition at line 37 of file KoFFWWSConverter.cpp.
| bool FontFamilySizeInfo::isSet = false |
Definition at line 32 of file KoFFWWSConverter.cpp.
| QHash<QLocale, QString> FontFamilySizeInfo::localizedLabels |
Definition at line 39 of file KoFFWWSConverter.cpp.
| qreal FontFamilySizeInfo::low = -1 |
Definition at line 36 of file KoFFWWSConverter.cpp.
| bool FontFamilySizeInfo::os2table = false |
Whether the size info is set.
Definition at line 33 of file KoFFWWSConverter.cpp.
| int FontFamilySizeInfo::subFamilyID = 0 |
Whether this is using the OS2 table or the GPOS Size feature.
Definition at line 34 of file KoFFWWSConverter.cpp.