PythonQt.QtGui.QFont · declarations 004
styleName
styleName() -> str
X.styleName() -> str
Supplemental documentation: Qt 5 reference:
QString QFont::styleName() const
Returns the requested font style name. This can be used to match the font with irregular styles (that can't be normalized in other style properties).
This function was introduced in Qt 4.8.
See also setStyleName(), setFamily(), and setStyle().
Upstream PySide2 reference signatures (binding differences may apply):
styleName(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#styleName
styleStrategy
styleStrategy() -> Any
X.styleStrategy()
Supplemental documentation: Qt 5 reference:
QFont::StyleStrategy QFont::styleStrategy() const
Returns the StyleStrategy.
The style strategy affects the font matching algorithm. See QFont::StyleStrategy for the list of available strategies.
See also setStyleStrategy(), setStyleHint(), and QFont::StyleHint.
Upstream PySide2 reference signatures (binding differences may apply):
styleStrategy(self) -> PySide2.QtGui.QFont.StyleStrategy
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#styleStrategy
substitute
substitute(arg__1: str) -> str
X.substitute(arg__1) -> str
Supplemental documentation: Qt 5 reference:
[static] QString QFont::substitute(const QString \&familyName)
Returns the first family name to be used whenever familyName is specified. The lookup is case insensitive.
If there is no substitution for familyName, familyName is returned.
To obtain a list of substitutions use substitutes().
See also setFamily(), insertSubstitutions(), insertSubstitution(), and removeSubstitutions().
Upstream PySide2 reference signatures (binding differences may apply):
substitute(arg__1: str) -> str
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#substitute
substitutes
substitutes(arg__1: str) -> tuple
X.substitutes(arg__1) -> tuple
Supplemental documentation: Qt 5 reference:
[static] QStringList QFont::substitutes(const QString \&familyName)
Returns a list of family names to be used whenever familyName is specified. The lookup is case insensitive.
If there is no substitution for familyName, an empty list is returned.
See also substitute(), insertSubstitutions(), insertSubstitution(), and removeSubstitutions().
Upstream PySide2 reference signatures (binding differences may apply):
substitutes(arg__1: str) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#substitutes
substitutions
substitutions() -> tuple
X.substitutions() -> tuple
Supplemental documentation: Qt 5 reference:
[static] QStringList QFont::substitutions()
Returns a sorted list of substituted family names.
See also insertSubstitution(), removeSubstitution(), and substitute().
Upstream PySide2 reference signatures (binding differences may apply):
substitutions() -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#substitutions
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QFont::swap(QFont \&other)
Swaps this font instance with other. This function is very fast and never fails.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtGui.QFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#swap
toString
toString() -> str
X.toString() -> str
Supplemental documentation: Qt 5 reference:
QString QFont::toString() const
Returns a description of the font. The description is a comma-separated list of the attributes, perfectly suited for use in QSettings, and consists of the following:
- Font family
- Point size
- Pixel size
- Style hint
- Font weight
- Font style
- Underline
- Strike out
- Fixed pitch
- Always 0
- Capitalization
- Letter spacing
- Word spacing
- Stretch
- Style strategy
- Font style (omitted when unavailable)
See also fromString().
Upstream PySide2 reference signatures (binding differences may apply):
toString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#toString
underline
underline() -> bool
X.underline() -> bool
Supplemental documentation: Qt 5 reference:
bool QFont::underline() const
Returns true if underline has been set; otherwise returns false.
See also setUnderline().
Upstream PySide2 reference signatures (binding differences may apply):
underline(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#underline
weight
weight() -> int
X.weight() -> int
Supplemental documentation: Qt 5 reference:
int QFont::weight() const
Returns the weight of the font, using the same scale as the QFont::Weight enumeration.
See also setWeight(), Weight, and QFontInfo.
Upstream PySide2 reference signatures (binding differences may apply):
weight(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#weight
wordSpacing
wordSpacing() -> float
X.wordSpacing() -> float
Supplemental documentation: Qt 5 reference:
qreal QFont::wordSpacing() const
Returns the word spacing for the font.
This function was introduced in Qt 4.4.
See also setWordSpacing() and setLetterSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
wordSpacing(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qfont.html#wordSpacing