forked from microsoft/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_afm.pyi
More file actions
32 lines (29 loc) · 1.32 KB
/
_afm.pyi
File metadata and controls
32 lines (29 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from ._typing import *
CharMetrics = ...
CompositePart = ...
class AFM:
def __init__(self, fh) -> None: ...
def get_bbox_char(self, c: str, isord: bool = False): ...
def string_width_height(self, s: str) -> tuple[float, float]: ...
def get_str_bbox_and_descent(self, s: str) -> tuple[float, ...]: ...
def get_str_bbox(self, s: str) -> tuple[float, ...]: ...
def get_name_char(self, c: str, isord: bool = False) -> str: ...
def get_width_char(self, c: str, isord: bool = False) -> float: ...
def get_width_from_char_name(self, name: str) -> float: ...
def get_height_char(self, c: str, isord: bool = False) -> float: ...
def get_kern_dist(self, c1: str, c2: str) -> float: ...
def get_kern_dist_from_name(self, name1: str, name2: str) -> float: ...
def get_fontname(self) -> str: ...
@property
def postscript_name(self) -> str: ...
def get_fullname(self) -> str: ...
def get_familyname(self) -> str: ...
@property
def family_name(self) -> str: ...
def get_weight(self) -> str: ...
def get_angle(self) -> float: ...
def get_capheight(self) -> float: ...
def get_xheight(self) -> float: ...
def get_underline_thickness(self) -> float: ...
def get_horizontal_stem_width(self) -> float | None: ...
def get_vertical_stem_width(self) -> float | None: ...