-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_config.py
More file actions
68 lines (56 loc) · 1.28 KB
/
_config.py
File metadata and controls
68 lines (56 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from PIL import ImageFont
souce_path = "img/"
path_cards = "cards/"
path_type = "type/"
path_lvl = "lvl/"
path_cardimg = "cardimages/"
path_rarity = "rarity/"
path_extras = "extras/"
path_linkarrow = "linkarrow/"
path_symbol = "symbols/"
i = 0
area_x = 380
area_y = 76
fontsize = 48
fontsize1 = 15
fontsize2 = 15
fontsize3 = 20
fontsize4 = 17
TitleFont = "fonts/Yu-Gi-Oh! Matrix Regular Small Caps 2.ttf"
fontfile2 = "fonts/Matrix-Bold.otf"
AttrFont = "fonts\Yu-Gi-Oh! ITC Stone Serif Small Caps Bold.ttf"
DescFont = "fonts\Yu-Gi-Oh! Matrix Book.ttf"
title_x = 30
title_y = 28
type_x = 35
type_y = 463
auflage_x = 45
auflage_y = 440
card_id_x = 300
card_id_y = 440
desc_x = 35
desc_y = 483
atk_x = 265
atk_y = 559
def_x = 350
def_y = 559
serial_x = 20
serial_y = 583
fontsize -= 1
TitleFont1 = ImageFont.truetype(TitleFont, fontsize)
AttrFont1 = ImageFont.truetype(AttrFont, fontsize1)
DescFont1 = ImageFont.truetype(DescFont, fontsize2)
font3 = ImageFont.truetype(TitleFont, fontsize3)
font4 = ImageFont.truetype(TitleFont, fontsize4)
title_color = "black"
desc_color = "black"
title_color_xyz = "white"
desc_color_xyz = "black"
border = True
border_color = "black"
border_size = 5
output_dir = "output"
text_alignment = "left"
img_fraction = 1
line_height = 0
line_width = 0