![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickvaluetypes_p.h>
Public Member Functions | |
Q_INVOKABLE | QQuickFontValueType ()=default |
Q_INVOKABLE | QQuickFontValueType (const QFont &font) |
Q_INVOKABLE QString | toString () const |
QString | family () const |
void | setFamily (const QString &) |
QString | styleName () const |
void | setStyleName (const QString &) |
bool | bold () const |
void | setBold (bool b) |
int | weight () const |
void | setWeight (int) |
bool | italic () const |
void | setItalic (bool b) |
bool | underline () const |
void | setUnderline (bool b) |
bool | overline () const |
void | setOverline (bool b) |
bool | strikeout () const |
void | setStrikeout (bool b) |
qreal | pointSize () const |
void | setPointSize (qreal size) |
int | pixelSize () const |
void | setPixelSize (int size) |
QQuickFontEnums::Capitalization | capitalization () const |
void | setCapitalization (QQuickFontEnums::Capitalization) |
qreal | letterSpacing () const |
void | setLetterSpacing (qreal spacing) |
qreal | wordSpacing () const |
void | setWordSpacing (qreal spacing) |
QQuickFontEnums::HintingPreference | hintingPreference () const |
void | setHintingPreference (QQuickFontEnums::HintingPreference) |
bool | kerning () const |
void | setKerning (bool b) |
bool | preferShaping () const |
void | setPreferShaping (bool b) |
QVariantMap | features () const |
void | setFeatures (const QVariantMap &features) |
QVariantMap | variableAxes () const |
void | setVariableAxes (const QVariantMap &variableAxes) |
bool | contextFontMerging () const |
void | setContextFontMerging (bool b) |
bool | preferTypoLineMetrics () const |
void | setPreferTypoLineMetrics (bool b) |
Public Member Functions inherited from QFont | |
QFont () | |
Constructs a font object that uses the application's default font. | |
QFont (const QString &family, int pointSize=-1, int weight=-1, bool italic=false) | |
Constructs a font object with the specified family, pointSize, weight and italic settings. | |
QFont (const QStringList &families, int pointSize=-1, int weight=-1, bool italic=false) | |
Constructs a font object with the specified families, pointSize, weight and italic settings. | |
QFont (const QFont &font, const QPaintDevice *pd) | |
QFont (const QFont &font) | |
Constructs a font that is a copy of font. | |
~QFont () | |
Destroys the font object and frees all allocated resources. | |
void | swap (QFont &other) noexcept |
QString | family () const |
Returns the requested font family name. | |
void | setFamily (const QString &) |
Sets the family name of the font. | |
QStringList | families () const |
void | setFamilies (const QStringList &) |
QString | styleName () const |
void | setStyleName (const QString &) |
int | pointSize () const |
Returns the point size of the font. | |
void | setPointSize (int) |
Sets the point size to pointSize. | |
qreal | pointSizeF () const |
Returns the point size of the font. | |
void | setPointSizeF (qreal) |
Sets the point size to pointSize. | |
int | pixelSize () const |
Returns the pixel size of the font if it was set with setPixelSize(). | |
void | setPixelSize (int) |
Sets the font size to pixelSize pixels, with a maxiumum size of an unsigned 16-bit integer. | |
Weight | weight () const |
Returns the weight of the font, using the same scale as the \l{QFont::Weight} enumeration. | |
void | setWeight (Weight weight) |
Sets the weight of the font to weight, using the scale defined by \l QFont::Weight enumeration. | |
bool | bold () const |
Returns true if weight() is a value greater than \l{Weight}{QFont::Medium}; otherwise returns false . | |
void | setBold (bool) |
If enable is true sets the font's weight to \l{Weight}{QFont::Bold}; otherwise sets the weight to \l{Weight}{QFont::Normal}. | |
void | setStyle (Style style) |
Sets the style of the font to style. | |
Style | style () const |
Returns the style of the font. | |
bool | italic () const |
Returns true if the style() of the font is not QFont::StyleNormal. | |
void | setItalic (bool b) |
Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to QFont::StyleNormal. | |
bool | underline () const |
Returns true if underline has been set; otherwise returns false . | |
void | setUnderline (bool) |
If enable is true, sets underline on; otherwise sets underline off. | |
bool | overline () const |
Returns true if overline has been set; otherwise returns false . | |
void | setOverline (bool) |
If enable is true, sets overline on; otherwise sets overline off. | |
bool | strikeOut () const |
Returns true if strikeout has been set; otherwise returns false . | |
void | setStrikeOut (bool) |
If enable is true, sets strikeout on; otherwise sets strikeout off. | |
bool | fixedPitch () const |
Returns true if fixed pitch has been set; otherwise returns false . | |
void | setFixedPitch (bool) |
If enable is true, sets fixed pitch on; otherwise sets fixed pitch off. | |
bool | kerning () const |
Returns true if kerning should be used when drawing text with this font. | |
void | setKerning (bool) |
Enables kerning for this font if enable is true; otherwise disables it. | |
StyleHint | styleHint () const |
Returns the StyleHint. | |
StyleStrategy | styleStrategy () const |
Returns the StyleStrategy. | |
void | setStyleHint (StyleHint, StyleStrategy=PreferDefault) |
Sets the style hint and strategy to hint and strategy, respectively. | |
void | setStyleStrategy (StyleStrategy s) |
Sets the style strategy for the font to s. | |
int | stretch () const |
Returns the stretch factor for the font. | |
void | setStretch (int) |
Sets the stretch factor for the font. | |
qreal | letterSpacing () const |
SpacingType | letterSpacingType () const |
void | setLetterSpacing (SpacingType type, qreal spacing) |
qreal | wordSpacing () const |
void | setWordSpacing (qreal spacing) |
void | setCapitalization (Capitalization) |
Capitalization | capitalization () const |
void | setHintingPreference (HintingPreference hintingPreference) |
HintingPreference | hintingPreference () const |
void | setFeature (Tag tag, quint32 value) |
void | unsetFeature (Tag tag) |
quint32 | featureValue (Tag tag) const |
bool | isFeatureSet (Tag tag) const |
QList< Tag > | featureTags () const |
void | clearFeatures () |
void | setVariableAxis (Tag tag, float value) |
void | unsetVariableAxis (Tag tag) |
bool | isVariableAxisSet (Tag tag) const |
float | variableAxisValue (Tag tag) const |
void | clearVariableAxes () |
QList< Tag > | variableAxisTags () const |
bool | exactMatch () const |
Returns true if a window system font exactly matching the settings of this font is available. | |
QFont & | operator= (const QFont &) |
Move-assigns other to this QFont instance. | |
bool | operator== (const QFont &) const |
Returns true if this font is equal to f; otherwise returns false. | |
bool | operator!= (const QFont &) const |
Returns true if this font is different from f; otherwise returns false . | |
bool | operator< (const QFont &) const |
Provides an arbitrary comparison of this font and font f. | |
operator QVariant () const | |
Returns the font as a QVariant. | |
bool | isCopyOf (const QFont &) const |
Returns true if this font and f are copies of each other, i.e. | |
QString | key () const |
Returns the font's key, a textual representation of a font. | |
QString | toString () const |
Returns a description of the font. | |
bool | fromString (const QString &) |
Sets this font to match the description descrip. | |
QString | defaultFamily () const |
Returns the family name that corresponds to the current style hint. | |
QFont | resolve (const QFont &) const |
Returns a new QFont that has attributes copied from other that have not been previously set on this font. | |
uint | resolveMask () const |
void | setResolveMask (uint mask) |
Static Public Member Functions | |
static QVariant | create (const QJSValue &value) |
Static Public Member Functions inherited from QFont | |
static QString | substitute (const QString &) |
Returns the first family name to be used whenever familyName is specified. | |
static QStringList | substitutes (const QString &) |
Returns a list of family names to be used whenever familyName is specified. | |
static QStringList | substitutions () |
Returns a sorted list of substituted family names. | |
static void | insertSubstitution (const QString &, const QString &) |
Inserts substituteName into the substitution table for the family familyName. | |
static void | insertSubstitutions (const QString &, const QStringList &) |
Inserts the list of families substituteNames into the substitution list for familyName. | |
static void | removeSubstitutions (const QString &) |
Removes all the substitutions for familyName. | |
static void | initialize () |
static void | cleanup () |
static void | cacheStatistics () |
Properties | |
QString | family |
QString | styleName |
bool | bold |
int | weight |
bool | italic |
bool | underline |
bool | overline |
bool | strikeout |
qreal | pointSize |
int | pixelSize |
QQuickFontEnums::Capitalization | capitalization |
qreal | letterSpacing |
qreal | wordSpacing |
QQuickFontEnums::HintingPreference | hintingPreference |
bool | kerning |
bool | preferShaping |
QVariantMap | features |
QVariantMap | variableAxes |
bool | contextFontMerging |
bool | preferTypoLineMetrics |
Additional Inherited Members | |
Public Types inherited from QFont | |
enum | StyleHint { Helvetica , SansSerif = Helvetica , Times , Serif = Times , Courier , TypeWriter = Courier , OldEnglish , Decorative = OldEnglish , System , AnyStyle , Cursive , Monospace , Fantasy } |
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family if a selected font family is not available. More... | |
enum | StyleStrategy { PreferDefault = 0x0001 , PreferBitmap = 0x0002 , PreferDevice = 0x0004 , PreferOutline = 0x0008 , ForceOutline = 0x0010 , PreferMatch = 0x0020 , PreferQuality = 0x0040 , PreferAntialias = 0x0080 , NoAntialias = 0x0100 , NoSubpixelAntialias = 0x0800 , PreferNoShaping = 0x1000 , ContextFontMerging = 0x2000 , PreferTypoLineMetrics = 0x4000 , NoFontMerging = 0x8000 } |
The style strategy tells the \l{QFont}{font matching} algorithm what type of fonts should be used to find an appropriate default family. More... | |
enum | HintingPreference { PreferDefaultHinting = 0 , PreferNoHinting = 1 , PreferVerticalHinting = 2 , PreferFullHinting = 3 } |
enum | Weight { Thin = 100 , ExtraLight = 200 , Light = 300 , Normal = 400 , Medium = 500 , DemiBold = 600 , Bold = 700 , ExtraBold = 800 , Black = 900 } |
Qt uses a weighting scale from 1 to 1000 compatible with OpenType. More... | |
enum | Style { StyleNormal , StyleItalic , StyleOblique } |
This enum describes the different styles of glyphs that are used to display text. More... | |
enum | Stretch { AnyStretch = 0 , UltraCondensed = 50 , ExtraCondensed = 62 , Condensed = 75 , SemiCondensed = 87 , Unstretched = 100 , SemiExpanded = 112 , Expanded = 125 , ExtraExpanded = 150 , UltraExpanded = 200 } |
Predefined stretch values that follow the CSS naming convention. More... | |
enum | Capitalization { MixedCase , AllUppercase , AllLowercase , SmallCaps , Capitalize } |
enum | SpacingType { PercentageSpacing , AbsoluteSpacing } |
enum | ResolveProperties { NoPropertiesResolved = 0x0000 , FamilyResolved = 0x0001 , SizeResolved = 0x0002 , StyleHintResolved = 0x0004 , StyleStrategyResolved = 0x0008 , WeightResolved = 0x0010 , StyleResolved = 0x0020 , UnderlineResolved = 0x0040 , OverlineResolved = 0x0080 , StrikeOutResolved = 0x0100 , FixedPitchResolved = 0x0200 , StretchResolved = 0x0400 , KerningResolved = 0x0800 , CapitalizationResolved = 0x1000 , LetterSpacingResolved = 0x2000 , WordSpacingResolved = 0x4000 , HintingPreferenceResolved = 0x8000 , StyleNameResolved = 0x10000 , FamiliesResolved = 0x20000 , FeaturesResolved = 0x40000 , VariableAxesResolved = 0x80000 , AllPropertiesResolved = 0xfffff } |
Definition at line 416 of file qquickvaluetypes_p.h.
|
default |
|
inline |
Definition at line 451 of file qquickvaluetypes_p.h.
bool QQuickFontValueType::bold | ( | ) | const |
Definition at line 1095 of file qquickvaluetypes.cpp.
QQuickFontEnums::Capitalization QQuickFontValueType::capitalization | ( | ) | const |
Definition at line 1192 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::contextFontMerging | ( | ) | const |
Definition at line 1319 of file qquickvaluetypes.cpp.
Definition at line 950 of file qquickvaluetypes.cpp.
QString QQuickFontValueType::family | ( | ) | const |
Definition at line 1075 of file qquickvaluetypes.cpp.
QVariantMap QQuickFontValueType::features | ( | ) | const |
Definition at line 1310 of file qquickvaluetypes.cpp.
QQuickFontEnums::HintingPreference QQuickFontValueType::hintingPreference | ( | ) | const |
Definition at line 1222 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::italic | ( | ) | const |
Definition at line 1115 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::kerning | ( | ) | const |
Definition at line 1232 of file qquickvaluetypes.cpp.
qreal QQuickFontValueType::letterSpacing | ( | ) | const |
Definition at line 1202 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::overline | ( | ) | const |
Definition at line 1135 of file qquickvaluetypes.cpp.
int QQuickFontValueType::pixelSize | ( | ) | const |
Definition at line 1175 of file qquickvaluetypes.cpp.
qreal QQuickFontValueType::pointSize | ( | ) | const |
Definition at line 1155 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::preferShaping | ( | ) | const |
Definition at line 1242 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::preferTypoLineMetrics | ( | ) | const |
Definition at line 1337 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setBold | ( | bool | b | ) |
Definition at line 1100 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setCapitalization | ( | QQuickFontEnums::Capitalization | c | ) |
Definition at line 1197 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setContextFontMerging | ( | bool | b | ) |
Definition at line 1324 of file qquickvaluetypes.cpp.
Definition at line 1080 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setFeatures | ( | const QVariantMap & | features | ) |
Definition at line 1289 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setHintingPreference | ( | QQuickFontEnums::HintingPreference | hintingPreference | ) |
Definition at line 1227 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setItalic | ( | bool | b | ) |
Definition at line 1120 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setKerning | ( | bool | b | ) |
Definition at line 1237 of file qquickvaluetypes.cpp.
Definition at line 1207 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setOverline | ( | bool | b | ) |
Definition at line 1140 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setPixelSize | ( | int | size | ) |
Definition at line 1183 of file qquickvaluetypes.cpp.
Definition at line 1163 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setPreferShaping | ( | bool | b | ) |
Definition at line 1247 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setPreferTypoLineMetrics | ( | bool | b | ) |
Definition at line 1342 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setStrikeout | ( | bool | b | ) |
Definition at line 1150 of file qquickvaluetypes.cpp.
Definition at line 1090 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setUnderline | ( | bool | b | ) |
Definition at line 1130 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setVariableAxes | ( | const QVariantMap & | variableAxes | ) |
Definition at line 1258 of file qquickvaluetypes.cpp.
void QQuickFontValueType::setWeight | ( | int | w | ) |
Definition at line 1110 of file qquickvaluetypes.cpp.
Definition at line 1217 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::strikeout | ( | ) | const |
Definition at line 1145 of file qquickvaluetypes.cpp.
QString QQuickFontValueType::styleName | ( | ) | const |
Definition at line 1085 of file qquickvaluetypes.cpp.
QString QQuickFontValueType::toString | ( | ) | const |
Definition at line 1070 of file qquickvaluetypes.cpp.
bool QQuickFontValueType::underline | ( | ) | const |
Definition at line 1125 of file qquickvaluetypes.cpp.
QVariantMap QQuickFontValueType::variableAxes | ( | ) | const |
Definition at line 1280 of file qquickvaluetypes.cpp.
int QQuickFontValueType::weight | ( | ) | const |
Definition at line 1105 of file qquickvaluetypes.cpp.
qreal QQuickFontValueType::wordSpacing | ( | ) | const |
Definition at line 1212 of file qquickvaluetypes.cpp.
|
readwrite |
Definition at line 422 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 430 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 438 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 420 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 436 of file qquickvaluetypes_p.h.
Referenced by testing.tools.test_runner._PerProcessConfig::InitializeFeatures().
|
readwrite |
Definition at line 433 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 424 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 434 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 431 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 426 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 429 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 428 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 435 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 439 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 427 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 421 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 425 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 437 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 423 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 432 of file qquickvaluetypes_p.h.