Coverage for rendercv/themes/sb2nov/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-07 17:51 +0000

1from typing import Literal 

2 

3import pydantic 

4 

5from rendercv.themes.common_options import LaTeXDimension, ThemeOptions 

6 

7 

8class Sb2novThemeOptions(ThemeOptions): 

9 """This class is the data model of the theme options for the `sb2nov` theme.""" 

10 

11 theme: Literal["sb2nov"] 

12 font: Literal[ 

13 "Latin Modern Serif", 

14 "Latin Modern Sans Serif", 

15 "Latin Modern Mono", 

16 "Source Sans 3", 

17 "Charter", 

18 ] = pydantic.Field( 

19 default="Latin Modern Serif", 

20 title="Font", 

21 description=( 

22 "The font family of the CV. The default value is Latin Modern Serif." 

23 ), 

24 ) 

25 header_font_size: LaTeXDimension = pydantic.Field( 

26 default="24 pt", 

27 title="Header Font Size", 

28 description=( 

29 "The font size of the header (the name of the person). The default value is" 

30 " 24 pt. Unfortunately, sb2nov does not support font sizes bigger than" 

31 " 24 pt." 

32 ), 

33 )