Skip to content

FontInfo

Qt Base Class: QFontInfo

Signature: QFontInfo(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None QFontInfo(self, arg__1: Union[PySide6.QtGui.QFontInfo, PySide6.QtGui.QFont]) -> None

Base classes

Name Children Inherits
QFontInfo
PySide6.QtGui
QFontInfo(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None

⋔ Inheritance diagram

graph TD
  1473245609968["gui.FontInfo"]
  1473300138976["QtGui.QFontInfo"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473300138976 --> 1473245609968
  1473291690208 --> 1473300138976
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QFontInfo

General information about fonts.

Source code in prettyqt\gui\fontinfo.py
class FontInfo(gui.QFontInfo):
    """General information about fonts."""

    def get_style_hint(self) -> gui.font.StyleHintStr:
        return gui.font.STYLE_HINTS.inverse[self.styleHint()]