animator.skia.FontMetrics¶
- class animator.skia.FontMetrics¶
Bases:
pybind11_builtins.pybind11_object
- __init__(self: animator.skia.FontMetrics) None ¶
Methods
__init__
(self)hasBounds
(self)hasStrikeoutPosition
(self)Returns the strikeout position if it is valid, otherwise
None
.hasStrikeoutThickness
(self)Returns the strikeout thickness if it is valid, otherwise
None
.hasUnderlinePosition
(self)Returns the underline position if it is valid, otherwise
None
.hasUnderlineThickness
(self)Returns the underline thickness if it is valid, otherwise
None
.Attributes
fAscent
fAvgCharWidth
fBottom
fCapHeight
fDescent
fFlags
fLeading
fMaxCharWidth
fStrikeoutPosition
fStrikeoutThickness
fTop
fUnderlinePosition
fUnderlineThickness
fXHeight
fXMax
fXMin
- class FontMetricsFlags¶
Bases:
pybind11_builtins.pybind11_object
Members:
kUnderlineThicknessIsValid_Flag
kUnderlinePositionIsValid_Flag
kStrikeoutThicknessIsValid_Flag
kStrikeoutPositionIsValid_Flag
kBoundsInvalid_Flag
- property name¶
- hasBounds(self: animator.skia.FontMetrics) bool ¶
- hasStrikeoutPosition(self: animator.skia.FontMetrics) Optional[float] ¶
Returns the strikeout position if it is valid, otherwise
None
.
- hasStrikeoutThickness(self: animator.skia.FontMetrics) Optional[float] ¶
Returns the strikeout thickness if it is valid, otherwise
None
.
- hasUnderlinePosition(self: animator.skia.FontMetrics) Optional[float] ¶
Returns the underline position if it is valid, otherwise
None
.
- hasUnderlineThickness(self: animator.skia.FontMetrics) Optional[float] ¶
Returns the underline thickness if it is valid, otherwise
None
.