Skip to content

PythonQt.QtGui.QFont · declarations 002

Back to PythonQt.QtGui.QFont

PreferMatch instance-attribute

PreferMatch: Any

PreferNoHinting instance-attribute

PreferNoHinting: Any

PreferOutline instance-attribute

PreferOutline: Any

PreferQuality instance-attribute

PreferQuality: Any

PreferVerticalHinting instance-attribute

PreferVerticalHinting: Any

SansSerif instance-attribute

SansSerif: Any

SemiCondensed instance-attribute

SemiCondensed: Any

SemiExpanded instance-attribute

SemiExpanded: Any

Serif instance-attribute

Serif: Any

SmallCaps instance-attribute

SmallCaps: Any

SpacingType instance-attribute

SpacingType: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Stretch instance-attribute

Stretch: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Style instance-attribute

Style: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

StyleItalic instance-attribute

StyleItalic: Any

StyleNormal instance-attribute

StyleNormal: Any

StyleOblique instance-attribute

StyleOblique: Any

StyleStrategy instance-attribute

StyleStrategy: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Thin instance-attribute

Thin: Any

Times instance-attribute

Times: Any

TypeWriter instance-attribute

TypeWriter: Any

UltraCondensed instance-attribute

UltraCondensed: Any

UltraExpanded instance-attribute

UltraExpanded: Any

Unstretched instance-attribute

Unstretched: Any

Weight instance-attribute

Weight: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

bold

bold() -> bool

X.bold() -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::bold() const

Returns true if weight() is a value greater than QFont::Medium; otherwise returns false.

See also weight(), setBold(), and QFontInfo::bold().

Upstream PySide2 reference signatures (binding differences may apply):

bold(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#bold

cacheStatistics

cacheStatistics() -> None

X.cacheStatistics()

Upstream PySide2 reference signatures (binding differences may apply):

cacheStatistics() -> None

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#cacheStatistics

capitalization

capitalization() -> Any

X.capitalization()

Supplemental documentation: Qt 5 reference:

QFont::Capitalization QFont::capitalization() const

Returns the current capitalization type of the font.

This function was introduced in Qt 4.4.

See also setCapitalization().

Upstream PySide2 reference signatures (binding differences may apply):

capitalization(self) -> PySide2.QtGui.QFont.Capitalization

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#capitalization

cleanup

cleanup() -> None

X.cleanup()

Upstream PySide2 reference signatures (binding differences may apply):

cleanup() -> None

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#cleanup

defaultFamily

defaultFamily() -> str

X.defaultFamily() -> str

Supplemental documentation: Qt 5 reference:

QString QFont::defaultFamily() const

Returns the family name that corresponds to the current style hint.

See also StyleHint, styleHint(), and setStyleHint().

Upstream PySide2 reference signatures (binding differences may apply):

defaultFamily(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#defaultFamily

exactMatch

exactMatch() -> bool

X.exactMatch() -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::exactMatch() const

Returns true if a window system font exactly matching the settings of this font is available.

See also QFontInfo.

Upstream PySide2 reference signatures (binding differences may apply):

exactMatch(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#exactMatch

family

family() -> str

X.family() -> str

Supplemental documentation: Qt 5 reference:

QString QFont::family() const

Returns the requested font family name, i.e. the name set in the constructor or the last setFont() call.

See also setFamily(), substitutes(), and substitute().

Upstream PySide2 reference signatures (binding differences may apply):

family(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#family

fixedPitch

fixedPitch() -> bool

X.fixedPitch() -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::fixedPitch() const

Returns true if fixed pitch has been set; otherwise returns false.

See also setFixedPitch() and QFontInfo::fixedPitch().

Upstream PySide2 reference signatures (binding differences may apply):

fixedPitch(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#fixedPitch

fromString

fromString(arg__1: str) -> bool

X.fromString(arg__1) -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::fromString(const QString \&descrip)

Sets this font to match the description descrip. The description is a comma-separated list of the font attributes, as returned by toString().

See also toString().

Upstream PySide2 reference signatures (binding differences may apply):

fromString(self, arg__1: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#fromString

hintingPreference

hintingPreference() -> Any

X.hintingPreference()

Supplemental documentation: Qt 5 reference:

QFont::HintingPreference QFont::hintingPreference() const

Returns the currently preferred hinting level for glyphs rendered with this font.

This function was introduced in Qt 4.8.

See also setHintingPreference().

Upstream PySide2 reference signatures (binding differences may apply):

hintingPreference(self) -> PySide2.QtGui.QFont.HintingPreference

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#hintingPreference

initialize

initialize() -> None

X.initialize()

Upstream PySide2 reference signatures (binding differences may apply):

initialize() -> None

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#initialize

insertSubstitution

insertSubstitution(arg__1: str, arg__2: str) -> None

X.insertSubstitution(arg__1, arg__2)

Supplemental documentation: Qt 5 reference:

[static] void QFont::insertSubstitution(const QString \&familyName, const QString \&substituteName)

Inserts substituteName into the substitution table for the family familyName.

After substituting a font, trigger the updating of the font by destroying and re-creating all QFont objects.

See also insertSubstitutions(), removeSubstitutions(), substitutions(), substitute(), and substitutes().

Upstream PySide2 reference signatures (binding differences may apply):

insertSubstitution(arg__1: str, arg__2: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#insertSubstitution

insertSubstitutions

insertSubstitutions(arg__1: str, arg__2: Any) -> None

X.insertSubstitutions(arg__1, arg__2)

Supplemental documentation: Qt 5 reference:

[static] void QFont::insertSubstitutions(const QString \&familyName, const QStringList \&substituteNames)

Inserts the list of families substituteNames into the substitution list for familyName.

After substituting a font, trigger the updating of the font by destroying and re-creating all QFont objects.

See also insertSubstitution(), removeSubstitutions(), substitutions(), and substitute().

Upstream PySide2 reference signatures (binding differences may apply):

insertSubstitutions(arg__1: str, arg__2: typing.Sequence[str]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#insertSubstitutions

isCopyOf

isCopyOf(arg__1: Any) -> bool

X.isCopyOf(arg__1) -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::isCopyOf(const QFont \&f) const

Returns true if this font and f are copies of each other, i.e. one of them was created as a copy of the other and neither has been modified since. This is much stricter than equality.

See also operator\=() and operator\=\=().

Upstream PySide2 reference signatures (binding differences may apply):

isCopyOf(self, arg__1: PySide2.QtGui.QFont) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#isCopyOf

italic

italic() -> bool

X.italic() -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::italic() const

Returns true if the style() of the font is not QFont::StyleNormal

See also setItalic() and style().

Upstream PySide2 reference signatures (binding differences may apply):

italic(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#italic

kerning

kerning() -> bool

X.kerning() -> bool

Supplemental documentation: Qt 5 reference:

bool QFont::kerning() const

Returns true if kerning should be used when drawing text with this font.

See also setKerning().

Upstream PySide2 reference signatures (binding differences may apply):

kerning(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfont.html#kerning