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
fAscentfAvgCharWidthfBottomfCapHeightfDescentfFlagsfLeadingfMaxCharWidthfStrikeoutPositionfStrikeoutThicknessfTopfUnderlinePositionfUnderlineThicknessfXHeightfXMaxfXMin- class FontMetricsFlags¶
Bases:
pybind11_builtins.pybind11_objectMembers:
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.