| 1 | from typing import Any |
| 2 | |
| 3 | def enum_font_families() -> list[dict[str, Any]]: |
| 4 | """Enumerate all regular (not italic/bold/etc. variants) font families on the system. |
| 5 | |
| 6 | Note there will be multiple entries for every family (corresponding to each charset |
| 7 | of the font). |
| 8 | """ |
| 9 | pass |
| 10 | |
| 11 | def font_data(family_name: str, italic: bool, weight: int) -> bytes: |
| 12 | "Return the raw font data for the specified font." |
| 13 | pass |
| 14 | |
| 15 | def add_font(data: bytes) -> int: |
| 16 | "Add the font(s) in the data (bytestring) to windows. Added fonts are always private. Returns the number of fonts added." |
| 17 | pass |
| 18 | |
| 19 | def add_system_font(path: str) -> int: |
| 20 | "Add the font(s) in the specified file to the system font tables." |
| 21 | pass |
| 22 | |
| 23 | def remove_system_font(path: str) -> bool: |
| 24 | "Remove the font(s) in the specified file from the system font tables." |
| 25 | pass |
| 26 | |
| 27 | FW_DONTCARE: int |
| 28 | FW_THIN: int |
| 29 | FW_EXTRALIGHT: int |
| 30 | FW_ULTRALIGHT: int |
| 31 | FW_LIGHT: int |
| 32 | FW_NORMAL: int |
| 33 | FW_REGULAR: int |
| 34 | FW_MEDIUM: int |
| 35 | FW_SEMIBOLD: int |
| 36 | FW_DEMIBOLD: int |
| 37 | FW_BOLD: int |
| 38 | FW_EXTRABOLD: int |
| 39 | FW_ULTRABOLD: int |
| 40 | FW_HEAVY: int |
| 41 | FW_BLACK: int |