view stubs/PIL/ImageFont.pyi @ 2130:90f99b3f2b18

items() was broken; needs more typechecking or tests
author drewp@bigasterisk.com
date Sun, 05 Jun 2022 01:40:17 +0000
parents 3b2255e3576d
children
line wrap: on
line source

# 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(): ...