| 1 | from collections.abc import Sequence |
| 2 | |
| 3 | class FreeTypeError(Exception): |
| 4 | pass |
| 5 | |
| 6 | class FreeType: |
| 7 | def __init__(self) -> None: |
| 8 | "FreeType" |
| 9 | pass |
| 10 | |
| 11 | def load_font(self, data: bytes) -> Face: |
| 12 | "load_font(bytestring) -> Load a font from font data." |
| 13 | pass |
| 14 | |
| 15 | class Face: |
| 16 | def __init__(self, freetype: FreeType, data: bytes) -> None: |
| 17 | "Face" |
| 18 | pass |
| 19 | |
| 20 | @property |
| 21 | def family_name(self) -> str: |
| 22 | "The family name of this font." |
| 23 | pass |
| 24 | |
| 25 | @property |
| 26 | def style_name(self) -> str: |
| 27 | "The style name of this font." |
| 28 | pass |
| 29 | |
| 30 | def supports_text(self, char_codes: Sequence[int]) -> bool: |
| 31 | "supports_text(sequence of unicode character codes) -> Return True iff this font has glyphs for all the specified characters." |
| 32 | pass |
| 33 | |
| 34 | def glyph_id(self, code: int) -> int: |
| 35 | "glyph_id(character code) -> Returns the glyph id for the specified character code." |
| 36 | pass |