@@ -58,14 +58,27 @@ class Dvi:
5858
5959class DviFont :
6060 texname : bytes
61- size : float
6261 def __init__ (
63- self , scale : float , tfm : Tfm , texname : bytes , vf : Vf | None
62+ self , scale : float , metrics : Tfm | TtfMetrics , texname : bytes , vf : Vf | None
6463 ) -> None : ...
64+ @classmethod
65+ def from_luatex (cls , scale : float , texname : bytes ): ...
66+ @classmethod
67+ def from_xetex (
68+ cls , scale : float , texname : bytes , subfont : int , effects : dict [str , float ]
69+ ): ...
6570 def __eq__ (self , other : object ) -> bool : ...
6671 def __ne__ (self , other : object ) -> bool : ...
6772 @property
73+ def size (self ) -> float : ...
74+ @property
6875 def widths (self ) -> list [int ]: ...
76+ @property
77+ def path (self ) -> Path : ...
78+ @property
79+ def subfont (self ) -> int : ...
80+ @property
81+ def effects (self ) -> dict [str , float ]: ...
6982
7083class Vf (Dvi ):
7184 def __init__ (self , filename : str | os .PathLike ) -> None : ...
@@ -91,6 +104,10 @@ class Tfm:
91104 @property
92105 def depth (self ) -> dict [int , int ]: ...
93106
107+ class TtfMetrics :
108+ def __init__ (self , filename : str | os .PathLike ) -> None : ...
109+ def get_metrics (self , idx : int ) -> TexMetrics : ...
110+
94111class PsFont (NamedTuple ):
95112 texname : bytes
96113 psname : bytes
0 commit comments