392 for (
int i = 0; i <
props.count(); ++i) {
393 switch (
props.at(i).key) {
404 int weight =
props.at(i).value.toInt();
434 const bool value =
props.at(i).value.toBool();
void setWordSpacing(qreal spacing)
Sets the word spacing for the font to spacing.
void setCapitalization(Capitalization)
Sets the capitalization of the text in this font to caps.
void setKerning(bool)
Enables kerning for this font if enable is true; otherwise disables it.
void setUnderline(bool)
If enable is true, sets underline on; otherwise sets underline off.
void setItalic(bool b)
Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to Q...
void setHintingPreference(HintingPreference hintingPreference)
Set the preference for the hinting level of the glyphs to hintingPreference.
void setStyleStrategy(StyleStrategy s)
Sets the style strategy for the font to s.
bool hasProperty(qint32 key) const
void setFamily(const QString &)
Sets the family name of the font.
void setStrikeOut(bool)
If enable is true, sets strikeout on; otherwise sets strikeout off.
void setStyleHint(StyleHint, StyleStrategy=PreferDefault)
Sets the style hint and strategy to hint and strategy, respectively.
bool fixedPitch() const
Returns true if fixed pitch has been set; otherwise returns false.
The QFont class specifies a font used for drawing text.
void setOverline(bool)
If enable is true, sets overline on; otherwise sets overline off.
void setFixedPitch(bool)
If enable is true, sets fixed pitch on; otherwise sets fixed pitch off.
void setWeight(int)
Sets the weight the font to weight, which should be a value from the QFont::Weight enumeration...
QVector< Property > props
void setPointSizeF(qreal)
Sets the point size to pointSize.
void setLetterSpacing(SpacingType type, qreal spacing)
Sets the letter spacing for the font to spacing and the type of spacing to type.
StyleStrategy styleStrategy() const
Returns the StyleStrategy.
void setPixelSize(int)
Sets the font size to pixelSize pixels.