S or /

SourceClass FontMetrics

from skia import FontMetrics
class FontMetrics:

Properties§

@property def ascent(self, /) -> float§
@property def avg_char_width(self, /) -> float§
@property def bottom(self, /) -> float§
@property def cap_height(self, /) -> float§
@property def descent(self, /) -> float§
@property def height(self, /) -> float§
@property def leading(self, /) -> float§
@property def max_char_width(self, /) -> float§
Source@property def strikeout_position(self, /) -> float |None§

Returns Some(position) if the font metrics have a valid strikeout position, otherwise None.

Source@property def strikeout_thickness(self, /) -> float |None§

Returns Some(thickness) if the font metrics have a valid strikeout thickness, otherwise None.

@property def top(self, /) -> float§
Source@property def underline_position(self, /) -> float |None§

Returns Some(position) if the font metrics have a valid underline position, otherwise None.

Source@property def underline_thickness(self, /) -> float |None§

Returns Some(thickness) if the font metrics have a valid underline thickness, otherwise None.

@property def x_height(self, /) -> float§
@property def x_max(self, /) -> float§
@property def x_min(self, /) -> float§