PythonQt.QtGui.QTextCharFormat · declarations 002
Back to PythonQt.QtGui.QTextCharFormat
setFontCapitalization
setFontCapitalization(capitalization: Any) -> None
X.setFontCapitalization(capitalization)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization)
Sets the capitalization of the text that apppears in this font to capitalization.
A font's capitalization makes the text appear in the selected capitalization mode.
This function was introduced in Qt 4.4.
See also fontCapitalization().
Upstream PySide2 reference signatures (binding differences may apply):
setFontCapitalization(self, capitalization: PySide2.QtGui.QFont.Capitalization) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontCapitalization
setFontFamily
setFontFamily(family: str) -> None
X.setFontFamily(family)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontFamily(const QString \&family)
Sets the text format's font family.
See also fontFamily() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontFamily(self, family: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontFamily
setFontFixedPitch
setFontFixedPitch(fixedPitch: bool) -> None
X.setFontFixedPitch(fixedPitch)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontFixedPitch(bool fixedPitch)
If fixedPitch is true, sets the text format's font to be fixed pitch; otherwise a non-fixed pitch font is used.
See also fontFixedPitch() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontFixedPitch(self, fixedPitch: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontFixedPitch
setFontHintingPreference
setFontHintingPreference(hintingPreference: Any) -> None
X.setFontHintingPreference(hintingPreference)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontHintingPreference(QFont::HintingPreference hintingPreference)
Sets the hinting preference of the text format's font to be hintingPreference.
This function was introduced in Qt 4.8.
See also fontHintingPreference(), setFont(), and QFont::setHintingPreference().
Upstream PySide2 reference signatures (binding differences may apply):
setFontHintingPreference(self, hintingPreference: PySide2.QtGui.QFont.HintingPreference) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontHintingPreference
setFontItalic
setFontItalic(italic: bool) -> None
X.setFontItalic(italic)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontItalic(bool italic)
If italic is true, sets the text format's font to be italic; otherwise the font will be non-italic.
See also fontItalic() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontItalic(self, italic: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontItalic
setFontKerning
setFontKerning(enable: bool) -> None
X.setFontKerning(enable)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontKerning(bool enable)
Enables kerning for this font if enable is true; otherwise disables it.
When kerning is enabled, glyph metrics do not add up anymore, even for Latin text. In other words, the assumption that width('a') + width('b') is equal to width("ab") is not neccesairly true.
This function was introduced in Qt 4.5.
See also fontKerning() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontKerning(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontKerning
setFontLetterSpacing
setFontLetterSpacing(spacing: float) -> None
X.setFontLetterSpacing(spacing)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontLetterSpacing(qreal spacing)
Sets the letter spacing of this format to the given spacing. The meaning of the value depends on the font letter spacing type.
For percentage spacing a value of 100 indicates default spacing; a value of 200 doubles the amount of space a letter takes.
This function was introduced in Qt 4.4.
See also fontLetterSpacing(), setFontLetterSpacingType(), and fontLetterSpacingType().
Upstream PySide2 reference signatures (binding differences may apply):
setFontLetterSpacing(self, spacing: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontLetterSpacing
setFontLetterSpacingType
setFontLetterSpacingType(letterSpacingType: Any) -> None
X.setFontLetterSpacingType(letterSpacingType)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontLetterSpacingType(QFont::SpacingType letterSpacingType)
Sets the letter spacing type of this format to letterSpacingType.
This function was introduced in Qt 5.0.
See also fontLetterSpacingType(), setFontLetterSpacing(), and fontLetterSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
setFontLetterSpacingType(self, letterSpacingType: PySide2.QtGui.QFont.SpacingType) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontLetterSpacingType
setFontOverline
setFontOverline(overline: bool) -> None
X.setFontOverline(overline)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontOverline(bool overline)
If overline is true, sets the text format's font to be overlined; otherwise the font is displayed non-overlined.
See also fontOverline() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontOverline(self, overline: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontOverline
setFontPointSize
setFontPointSize(size: float) -> None
X.setFontPointSize(size)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontPointSize(qreal size)
Sets the text format's font size.
See also fontPointSize() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontPointSize(self, size: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontPointSize
setFontStretch
setFontStretch(factor: int) -> None
X.setFontStretch(factor)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontStretch(int factor)
Sets the stretch factor for the font to factor.
The stretch factor changes the width of all characters in the font by factor percent. For example, setting factor to 150 results in all characters in the font being 1.5 times (ie. 150%) wider. The default stretch factor is 100. The minimum stretch factor is 1, and the maximum stretch factor is 4000.
The stretch factor is only applied to outline fonts. The stretch factor is ignored for bitmap fonts.
This function was introduced in Qt 5.0.
See also fontStretch().
Upstream PySide2 reference signatures (binding differences may apply):
setFontStretch(self, factor: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontStretch
setFontStrikeOut
setFontStrikeOut(strikeOut: bool) -> None
X.setFontStrikeOut(strikeOut)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontStrikeOut(bool strikeOut)
If strikeOut is true, sets the text format's font with strike-out enabled (with a horizontal line through it); otherwise it is displayed without strikeout.
See also fontStrikeOut() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontStrikeOut(self, strikeOut: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontStrikeOut
setFontStyleHint
setFontStyleHint(hint: Any, strategy: Any) -> None
X.setFontStyleHint(hint, strategy)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint, QFont::StyleStrategy strategy \= QFont::PreferDefault)
Sets the font style hint and strategy.
Qt does not support style hints on X11 since this information is not provided by the window system.
This function was introduced in Qt 4.5.
See also fontStyleHint(), setFont(), and QFont::setStyleHint().
Upstream PySide2 reference signatures (binding differences may apply):
setFontStyleHint(self, hint: PySide2.QtGui.QFont.StyleHint, strategy: PySide2.QtGui.QFont.StyleStrategy=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontStyleHint
setFontStyleStrategy
setFontStyleStrategy(strategy: Any) -> None
X.setFontStyleStrategy(strategy)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy)
Sets the font style strategy.
This function was introduced in Qt 4.5.
See also fontStyleStrategy(), setFont(), and QFont::setStyleStrategy().
Upstream PySide2 reference signatures (binding differences may apply):
setFontStyleStrategy(self, strategy: PySide2.QtGui.QFont.StyleStrategy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontStyleStrategy
setFontUnderline
setFontUnderline(underline: bool) -> None
X.setFontUnderline(underline)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontUnderline(bool underline)
If underline is true, sets the text format's font to be underlined; otherwise it is displayed non-underlined.
See also fontUnderline() and setFont().
Upstream PySide2 reference signatures (binding differences may apply):
setFontUnderline(self, underline: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontUnderline
setFontWeight
setFontWeight(weight: int) -> None
X.setFontWeight(weight)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontWeight(int weight)
Sets the text format's font weight to weight.
See also fontWeight(), setFont(), and QFont::Weight.
Upstream PySide2 reference signatures (binding differences may apply):
setFontWeight(self, weight: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontWeight
setFontWordSpacing
setFontWordSpacing(spacing: float) -> None
X.setFontWordSpacing(spacing)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setFontWordSpacing(qreal spacing)
Sets the word spacing of this format to the given spacing, in pixels.
This function was introduced in Qt 4.4.
See also fontWordSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
setFontWordSpacing(self, spacing: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setFontWordSpacing
setTableCellColumnSpan
setTableCellColumnSpan(tableCellColumnSpan: int) -> None
X.setTableCellColumnSpan(tableCellColumnSpan)
Upstream PySide2 reference signatures (binding differences may apply):
setTableCellColumnSpan(self, tableCellColumnSpan: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setTableCellColumnSpan
setTableCellRowSpan
setTableCellRowSpan(tableCellRowSpan: int) -> None
X.setTableCellRowSpan(tableCellRowSpan)
Upstream PySide2 reference signatures (binding differences may apply):
setTableCellRowSpan(self, tableCellRowSpan: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setTableCellRowSpan
setTextOutline
setTextOutline(pen: Any) -> None
X.setTextOutline(pen)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setTextOutline(const QPen \&pen)
Sets the pen used to draw the outlines of characters to the given pen.
See also textOutline().
Upstream PySide2 reference signatures (binding differences may apply):
setTextOutline(self, pen: PySide2.QtGui.QPen) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setTextOutline
setToolTip
setToolTip(tip: str) -> None
X.setToolTip(tip)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setToolTip(const QString \&text)
Sets the tool tip for a fragment of text to the given text.
This function was introduced in Qt 4.3.
See also toolTip().
Upstream PySide2 reference signatures (binding differences may apply):
setToolTip(self, tip: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setToolTip
setUnderlineColor
setUnderlineColor(color: Any) -> None
X.setUnderlineColor(color)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setUnderlineColor(const QColor \&color)
Sets the underline color used for the characters with this format to the color specified.
See also underlineColor().
Upstream PySide2 reference signatures (binding differences may apply):
setUnderlineColor(self, color: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setUnderlineColor
setUnderlineStyle
setUnderlineStyle(style: Any) -> None
X.setUnderlineStyle(style)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style)
Sets the style of underlining the text to style.
This function was introduced in Qt 4.2.
See also underlineStyle().
Upstream PySide2 reference signatures (binding differences may apply):
setUnderlineStyle(self, style: PySide2.QtGui.QTextCharFormat.UnderlineStyle) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setUnderlineStyle
setVerticalAlignment
setVerticalAlignment(alignment: Any) -> None
X.setVerticalAlignment(alignment)
Supplemental documentation: Qt 5 reference:
void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment)
Sets the vertical alignment used for the characters with this format to the alignment specified.
See also verticalAlignment().
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalAlignment(self, alignment: PySide2.QtGui.QTextCharFormat.VerticalAlignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#setVerticalAlignment
tableCellColumnSpan
tableCellColumnSpan() -> int
X.tableCellColumnSpan() -> int
Upstream PySide2 reference signatures (binding differences may apply):
tableCellColumnSpan(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#tableCellColumnSpan
tableCellRowSpan
tableCellRowSpan() -> int
X.tableCellRowSpan() -> int
Upstream PySide2 reference signatures (binding differences may apply):
tableCellRowSpan(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#tableCellRowSpan
textOutline
textOutline() -> Any
X.textOutline() -> PythonQt.QtGui.QPen
Supplemental documentation: Qt 5 reference:
QPen QTextCharFormat::textOutline() const
Returns the pen used to draw the outlines of characters in this format.
See also setTextOutline().
Upstream PySide2 reference signatures (binding differences may apply):
textOutline(self) -> PySide2.QtGui.QPen
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#textOutline
toolTip
toolTip() -> str
X.toolTip() -> str
Supplemental documentation: Qt 5 reference:
QString QTextCharFormat::toolTip() const
Returns the tool tip that is displayed for a fragment of text.
This function was introduced in Qt 4.3.
See also setToolTip().
Upstream PySide2 reference signatures (binding differences may apply):
toolTip(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#toolTip
underlineColor
underlineColor() -> Any
X.underlineColor() -> PythonQt.QtGui.QColor
Supplemental documentation: Qt 5 reference:
QColor QTextCharFormat::underlineColor() const
Returns the color used to underline the characters with this format.
See also setUnderlineColor().
Upstream PySide2 reference signatures (binding differences may apply):
underlineColor(self) -> PySide2.QtGui.QColor
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#underlineColor
underlineStyle
underlineStyle() -> Any
X.underlineStyle()
Supplemental documentation: Qt 5 reference:
QTextCharFormat::UnderlineStyle QTextCharFormat::underlineStyle() const
Returns the style of underlining the text.
This function was introduced in Qt 4.2.
See also setUnderlineStyle().
Upstream PySide2 reference signatures (binding differences may apply):
underlineStyle(self) -> PySide2.QtGui.QTextCharFormat.UnderlineStyle
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#underlineStyle
verticalAlignment
verticalAlignment() -> Any
X.verticalAlignment()
Supplemental documentation: Qt 5 reference:
QTextCharFormat::VerticalAlignment QTextCharFormat::verticalAlignment() const
Returns the vertical alignment used for characters with this format.
See also setVerticalAlignment().
Upstream PySide2 reference signatures (binding differences may apply):
verticalAlignment(self) -> PySide2.QtGui.QTextCharFormat.VerticalAlignment
Source: https://doc.qt.io/archives/qt-5.15/qtextcharformat.html#verticalAlignment