diff --git a/stubs/PIL/ImageFont.pyi b/stubs/PIL/ImageFont.pyi new file mode 100644 --- /dev/null +++ b/stubs/PIL/ImageFont.pyi @@ -0,0 +1,38 @@ +# Stubs for PIL.ImageFont (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class _imagingft_not_installed: + def __getattr__(self, id: Any) -> None: ... + +class ImageFont: ... + +class FreeTypeFont: + path: Any = ... + size: Any = ... + index: Any = ... + encoding: Any = ... + font: Any = ... + font_bytes: Any = ... + def __init__(self, font: Optional[Any] = ..., size: int = ..., index: int = ..., encoding: str = ...) -> None: ... + def getname(self): ... + def getmetrics(self): ... + def getsize(self, text: Any): ... + def getoffset(self, text: Any): ... + def getmask(self, text: Any, mode: str = ...): ... + def getmask2(self, text: Any, mode: str = ..., fill: Any = ...): ... + def font_variant(self, font: Optional[Any] = ..., size: Optional[Any] = ..., index: Optional[Any] = ..., encoding: Optional[Any] = ...): ... + +class TransposedFont: + font: Any = ... + orientation: Any = ... + def __init__(self, font: Any, orientation: Optional[Any] = ...) -> None: ... + def getsize(self, text: Any): ... + def getmask(self, text: Any, mode: str = ...): ... + +def load(filename: Any): ... +def truetype(font: Optional[Any] = ..., size: int = ..., index: int = ..., encoding: str = ...): ... +def load_path(filename: Any): ... +def load_default(): ...