diff stubs/PIL/ImageFont.pyi @ 1947:3b2255e3576d

big stubgen run for PIL, moviepy, rx Ignore-this: 349c755d8d70fdd1ff5711bde41f1dcb
author Drew Perttula <drewp@bigasterisk.com>
date Wed, 05 Jun 2019 23:14:49 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/PIL/ImageFont.pyi	Wed Jun 05 23:14:49 2019 +0000
@@ -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(): ...