Repository navigation
Expand file tree
/
Copy pathmathtext.pyi
More file actions
48 lines (40 loc) · 1.57 KB
/
Copy pathmathtext.pyi
File metadata and controls
48 lines (40 loc) · 1.57 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from ._typing import *
from .font_manager import FontProperties
from types import SimpleNamespace
get_unicode_index = ...
class MathtextBackend:
def __init__(self) -> None: ...
def set_canvas_size(self, w: float, h: float, d: float) -> None: ...
def render_glyph(self, ox: float, oy: float, info: SimpleNamespace): ...
def render_rect_filled(self, x1: float, y1: float, x2: float, y2: float): ...
def get_results(self, box) -> tuple: ...
def get_hinting_type(self) -> int: ...
class MathtextBackendAgg(MathtextBackend):
def __init__(self) -> None: ...
def set_canvas_size(self, w: float, h: float, d: float) -> None: ...
def render_glyph(self, ox: float, oy: float, info: SimpleNamespace) -> None: ...
def render_rect_filled(
self, x1: float, y1: float, x2: float, y2: float
) -> None: ...
def get_results(self, box): ...
def get_hinting_type(self) -> int: ...
class MathtextBackendPath(MathtextBackend):
def __init__(self) -> None: ...
def render_glyph(self, ox: float, oy: float, info: SimpleNamespace) -> None: ...
def render_rect_filled(
self, x1: float, y1: float, x2: float, y2: float
) -> None: ...
def get_results(self, box): ...
class MathTextWarning(Warning): ...
class MathTextParser:
def __init__(self, output: str) -> None: ...
def parse(self, s: str, dpi: float = ..., prop: FontProperties = ...): ...
def math_to_image(
s: str,
filename_or_obj: str | PathLike | FileLike,
prop: FontProperties = ...,
dpi: float = ...,
format: str = ...,
*,
color: str = ...
): ...