forked from microsoft/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdviread.pyi
More file actions
59 lines (48 loc) · 1.37 KB
/
dviread.pyi
File metadata and controls
59 lines (48 loc) · 1.37 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
49
50
51
52
53
54
55
56
57
58
59
from _typeshed import Incomplete
from collections import namedtuple
from functools import lru_cache
from typing import NamedTuple
from ._typing import *
from .path import Path
Page = ...
Box = ...
class Text(NamedTuple):
x: float
y: float
font: Incomplete
glyph: Incomplete
width: int
@property
def font_path(self) -> Path: ...
@property
def font_size(self): ...
@property
def font_effects(self): ...
@property
def glyph_name_or_index(self): ...
class Dvi:
def __init__(self, filename, dpi: float) -> None: ...
baseline = ...
def __enter__(self): ...
def __exit__(self, etype, evalue, etrace): ...
def __iter__(self): ...
def close(self) -> None: ...
class DviFont:
def __init__(self, scale: float, tfm: Tfm, texname: bytes, vf: Vf) -> None: ...
def __eq__(self, other) -> bool: ...
def __ne__(self, other) -> bool: ...
class Vf(Dvi):
def __init__(self, filename: str | PathLike) -> None: ...
def __getitem__(self, code): ...
class Tfm:
def __init__(self, filename: str | PathLike) -> None: ...
PsFont = ...
class PsfontsMap:
@lru_cache
def __new__(cls, filename): ...
def __getitem__(self, texname): ...
class _LuatexKpsewhich:
@lru_cache
def __new__(cls): ...
def search(self, filename): ...
def find_tex_file(filename: str | PathLike, format: str | bytes = ...): ...