Skip to content

Commit 3596c39

Browse files
authored
Merge pull request #17 from LleidaHack/add-fonts-and-pdf-gen
Add fonts and pdf gen
2 parents 4fed72d + b78ebf1 commit 3596c39

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+327
-435
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#custom
2-
resources/editions/*/*_firebase_cert.json
2+
resources/*_firebase_cert.json
33
resources/editions/*/data.json
44
_out_/
5+
*.pdf
56

67
# Byte-compiled / optimized / DLL files
78
__pycache__/

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense para saber los atributos posibles.
3+
// Mantenga el puntero para ver las descripciones de los existentes atributos.
4+
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Archivo actual",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "python main.py",
12+
"console": "integratedTerminal"
13+
}
14+
]
15+
}

Config.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33

44
TEST = False
55

6-
DB_PATH_T = 'hackeps-2019/dev/users'
7-
DB_PATH = 'hackeps-2019/prod/users'
8-
9-
EDITION='2019'
6+
EDITION='2022'
107
EDITIONS_FOLDER = 'editions'
118

9+
DB_PATH_T = 'hackeps-'+EDITION+'/dev/users'
10+
DB_PATH = 'hackeps-'+EDITION+'/prod/users'
11+
12+
1213
OUT_FOLDER = '_out_'
1314
OUT_PATH = path.join('.', OUT_FOLDER)
1415

@@ -19,12 +20,15 @@
1920
DATA_PATH = path.join(RES_PATH, EDITIONS_FOLDER, EDITION, DATA_FILE)
2021

2122
DB_CERT = '2019_firebase_cert.json'
22-
DB_CERT_PATH = path.join(RES_PATH, EDITIONS_FOLDER, EDITION, DB_CERT)
23+
DB_CERT_PATH = path.join(RES_PATH, DB_CERT)
2324

2425
BAK_FILE = 'plantilla.png'
2526
BAK_PATH = path.join(RES_PATH, EDITIONS_FOLDER, EDITION, BAK_FILE)
2627

27-
FONT_FILE = 'arial.ttf'
28+
# FONT_FILE = 'Montserrat-Regular.ttf'
29+
FONT_FILE = 'SpaceMono-Regular.ttf'
2830
FONT_PATH = path.join(RES_PATH, FONT_FILE)
29-
FONT_SIZE = 60
31+
FONT_SIZE = 80
32+
FONT_COLOR = (0,0,0)
3033
FONT = ImageFont.truetype(FONT_PATH, FONT_SIZE)
34+
# FONT = ImageFont.truetype("Symbola.ttf", 60, encoding='unic')

0 commit comments

Comments
 (0)