← Về thư mục
openai4s/kernel/font_cache.py
- _default_data_dir · function · L140-L146 — def _default_data_dir() -> Path
- cache_directory · function · L149-L157 — def cache_directory( interpreter: str, data_dir: str | os.PathLike[str] | None = None ) -> Path
- _font_roots · function · L160-L192 — def _font_roots(platform_name: str, home: Path) -> list[Path]: # The directories matplotlib's own font search walks # (
OSXFontDirectories / X11FontDirectories).
- font_directory_fingerprint · function · L195-L240 — def font_directory_fingerprint( roots: Sequence[str | os.PathLike[str]] | None = None, ) -> str
- visit · function · L211-L236 — def visit(path: str, depth: int) -> None
- enable_background_builds · function · L243-L251 — def enable_background_builds(data_dir: str | os.PathLike[str] | None = None) -> None
- disable_background_builds · function · L254-L256 — def disable_background_builds() -> None
- request_build · function · L259-L319 — def request_build( interpreter: str, *, data_dir: str | os.PathLike[str] | None = None, runner: Runner | None = None, ) -> threading.Thread | None
- work · function · L289-L307 — def work() -> None
- _stoppable_runner · function · L322-L330 — def _stoppable_runner(stop: threading.Event) -> Runner
- run · function · L327-L328 — def run(command: list[str], *, timeout: float) -> Any
- _join_until · function · L333-L341 — def _join_until(threads: Sequence[threading.Thread], deadline: float) -> None
- shutdown_background_builds · function · L344-L373 — def shutdown_background_builds(timeout: float | None = None) -> bool
- _validated_fontlist · function · L376-L399 — def _validated_fontlist(name: Any, content: Any) -> bytes | None
- _install_identity · function · L402-L418 — def _install_identity(source: Any) -> list[int] | None
- _builder_payload · function · L421-L433 — def _builder_payload(stdout: Any) -> dict | None
- _write_atomically · function · L436-L449 — def _write_atomically(directory: Path, name: str, data: bytes) -> None
- build_font_cache · function · L452-L504 — def build_font_cache( interpreter: str, *, data_dir: str | os.PathLike[str] | None = None, runner: Runner | None = None, timeout: float = BUILD_TIMEOUT_S, ) -> Path | None
- _read_regular_file · function · L507-L518 — def _read_regular_file(path: Path, limit: int) -> bytes | None
- _place_privately · function · L521-L552 — def _place_privately(temp_dir: str, subdir: str, name: str, data: bytes) -> bool
- _inside · function · L555-L561 — def _inside(path: Path, root: Path) -> bool
- seed_kernel_font_cache · function · L564-L579 — def seed_kernel_font_cache( sandbox: Any, *, interpreter: str, data_dir: str | os.PathLike[str] | None = None, runner: Runner | None = None, ) -> bool
- _seed · function · L582-L643 — def _seed( sandbox: Any, *, interpreter: str, data_dir: str | os.PathLike[str] | None, runner: Runner | None, ) -> bool
- rebuild · function · L605-L606 — def rebuild() -> None