FontMetrics.FontMetricsFlags
- class FontMetricsFlags
FontMetricsFlags indicate when certain metrics are valid; the underline or strikeout metrics may be valid and zero.
Fonts with embedded bitmaps may not have valid underline or strikeout metrics.
Members:
kUnderlineThicknessIsValid_Flag : set if fUnderlineThickness is valid
kUnderlinePositionIsValid_Flag : set if fUnderlinePosition is valid
kStrikeoutThicknessIsValid_Flag : set if fStrikeoutThickness is valid
kStrikeoutPositionIsValid_Flag : set if fStrikeoutPosition is valid
Methods
Attributes
Methods
- FontMetricsFlags.__init__(self: skia.FontMetrics.FontMetricsFlags, value: int) None
Attributes
- FontMetricsFlags.kStrikeoutPositionIsValid_Flag = <FontMetricsFlags.kStrikeoutPositionIsValid_Flag: 8>
- FontMetricsFlags.kStrikeoutThicknessIsValid_Flag = <FontMetricsFlags.kStrikeoutThicknessIsValid_Flag: 4>
- FontMetricsFlags.kUnderlinePositionIsValid_Flag = <FontMetricsFlags.kUnderlinePositionIsValid_Flag: 2>
- FontMetricsFlags.kUnderlineThicknessIsValid_Flag = <FontMetricsFlags.kUnderlineThicknessIsValid_Flag: 1>
- FontMetricsFlags.name
- FontMetricsFlags.value