Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtGui »

Classe « QRawFont »

Informations générales

Héritage

builtins.object
    Object
        QRawFont

Définition

class QRawFont(Object):

Description [extrait de QRawFont.__doc__]

QRawFont(self) -> None
QRawFont(self, fileName: str, pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference = PySide6.QtGui.QFont.HintingPreference.PreferDefaultHinting) -> None
QRawFont(self, fontData: Union[PySide6.QtCore.QByteArray, bytes], pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference = PySide6.QtGui.QFont.HintingPreference.PreferDefaultHinting) -> None
QRawFont(self, other: PySide6.QtGui.QRawFont) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
KernedAdvancesPySide6.QtGui.QRawFont.LayoutFlag.KernedAdvances
PixelAntialiasingPySide6.QtGui.QRawFont.AntialiasingType.PixelAntialiasing
SeparateAdvancesPySide6.QtGui.QRawFont.LayoutFlag.SeparateAdvances
SubPixelAntialiasingPySide6.QtGui.QRawFont.AntialiasingType.SubPixelAntialiasing
UseDesignMetricsPySide6.QtGui.QRawFont.LayoutFlag.UseDesignMetrics

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
advancesForGlyphIndexes advancesForGlyphIndexes(self, glyphIndexes: Sequence[int]) -> List[PySide6.QtCore.QPointF] [extrait de advancesForGlyphIndexes.__doc__]
alphaMapForGlyph(self, glyphIndex: int, antialiasingType: PySide6.QtGui.QRawFont.AntialiasingType = PySide6.QtGui.QRawFont.AntialiasingType.SubPixelAntialiasing, transform: PySide6.QtGui.QTransform = Default(QTransform)) -> PySide6.QtGui.QImage alphaMapForGlyph(self, glyphIndex: int, antialiasingType: PySide6.QtGui.QRawFont.AntialiasingType = PySide6.QtGui.QRawFont.AntialiasingType.SubPixelAntialiasing, transform: PySide6.QtGui.QTransform = Default(QTransform)) -> PySide6.QtGui.QImage [extrait de alphaMapForGlyph.__doc__]
AntialiasingType
ascent(self) -> float ascent(self) -> float [extrait de ascent.__doc__]
averageCharWidth(self) -> float averageCharWidth(self) -> float [extrait de averageCharWidth.__doc__]
boundingRect(self, glyphIndex: int) -> PySide6.QtCore.QRectF boundingRect(self, glyphIndex: int) -> PySide6.QtCore.QRectF [extrait de boundingRect.__doc__]
capHeight(self) -> float capHeight(self) -> float [extrait de capHeight.__doc__]
descent(self) -> float descent(self) -> float [extrait de descent.__doc__]
familyName(self) -> str familyName(self) -> str [extrait de familyName.__doc__]
fontTable(self, tagName: bytes) -> PySide6.QtCore.QByteArray fontTable(self, tagName: bytes) -> PySide6.QtCore.QByteArray [extrait de fontTable.__doc__]
fromFont(font: Union[PySide6.QtGui.QFont, str, Sequence[str]], writingSystem: PySide6.QtGui.QFontDatabase.WritingSystem = PySide6.QtGui.QFontDatabase.WritingSystem.Any) -> PySide6.QtGui.QRawFont fromFont(font: Union[PySide6.QtGui.QFont, str, Sequence[str]], writingSystem: PySide6.QtGui.QFontDatabase.WritingSystem = PySide6.QtGui.QFontDatabase.WritingSystem.Any) -> PySide6.QtGui.QRawFont [extrait de fromFont.__doc__]
glyphIndexesForString(self, text: str) -> List[int] glyphIndexesForString(self, text: str) -> List[int] [extrait de glyphIndexesForString.__doc__]
hintingPreference(self) -> PySide6.QtGui.QFont.HintingPreference hintingPreference(self) -> PySide6.QtGui.QFont.HintingPreference [extrait de hintingPreference.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
LayoutFlag
LayoutFlags
leading(self) -> float leading(self) -> float [extrait de leading.__doc__]
lineThickness(self) -> float lineThickness(self) -> float [extrait de lineThickness.__doc__]
loadFromData(self, fontData: Union[PySide6.QtCore.QByteArray, bytes], pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None loadFromData(self, fontData: Union[PySide6.QtCore.QByteArray, bytes], pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None [extrait de loadFromData.__doc__]
loadFromFile(self, fileName: str, pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None loadFromFile(self, fileName: str, pixelSize: float, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None [extrait de loadFromFile.__doc__]
maxCharWidth(self) -> float maxCharWidth(self) -> float [extrait de maxCharWidth.__doc__]
pathForGlyph(self, glyphIndex: int) -> PySide6.QtGui.QPainterPath pathForGlyph(self, glyphIndex: int) -> PySide6.QtGui.QPainterPath [extrait de pathForGlyph.__doc__]
pixelSize(self) -> float pixelSize(self) -> float [extrait de pixelSize.__doc__]
setPixelSize(self, pixelSize: float) -> None setPixelSize(self, pixelSize: float) -> None [extrait de setPixelSize.__doc__]
style(self) -> PySide6.QtGui.QFont.Style style(self) -> PySide6.QtGui.QFont.Style [extrait de style.__doc__]
styleName(self) -> str styleName(self) -> str [extrait de styleName.__doc__]
supportedWritingSystems(self) -> List[PySide6.QtGui.QFontDatabase.WritingSystem] supportedWritingSystems(self) -> List[PySide6.QtGui.QFontDatabase.WritingSystem] [extrait de supportedWritingSystems.__doc__]
supportsCharacter supportsCharacter(self, character: str) -> bool [extrait de supportsCharacter.__doc__]
swap(self, other: PySide6.QtGui.QRawFont) -> None swap(self, other: PySide6.QtGui.QRawFont) -> None [extrait de swap.__doc__]
underlinePosition(self) -> float underlinePosition(self) -> float [extrait de underlinePosition.__doc__]
unitsPerEm(self) -> float unitsPerEm(self) -> float [extrait de unitsPerEm.__doc__]
weight(self) -> int weight(self) -> int [extrait de weight.__doc__]
xHeight(self) -> float xHeight(self) -> float [extrait de xHeight.__doc__]

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__