Coverage for src / rendercv / schema / models / design / font_family.py: 100%
4 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-25 13:49 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-25 13:49 +0000
1from typing import Literal
3from pydantic.json_schema import SkipJsonSchema
5available_font_families = sorted(
6 [
7 # Typst built-ins
8 "Libertinus Serif",
9 "New Computer Modern",
10 "DejaVu Sans Mono",
11 # RenderCV bundled
12 "Mukta",
13 "Open Sans",
14 "Gentium Book Plus",
15 "Noto Sans",
16 "Lato",
17 "Source Sans 3",
18 "EB Garamond",
19 "Open Sauce Sans",
20 "Fontin",
21 "Roboto",
22 "Ubuntu",
23 "Poppins",
24 "Raleway",
25 "XCharter",
26 ]
27)
30type FontFamily = SkipJsonSchema[str] | Literal[*tuple(available_font_families)] # ty: ignore[invalid-type-form]