fix: image adjustments, flavor text font size
release-tag / release-image (push) Has been cancelled

This commit is contained in:
2026-03-21 18:04:02 +01:00
parent 79abb8452c
commit f7409fe7c3
9 changed files with 15 additions and 14 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
-2
View File
@@ -6,11 +6,9 @@ local file used to track next stuff to do
- Add SVG image for heal
- Add bleeding-safe deadzone around PNG output for printing
- Different icons for factions?
- Flavor text solution (perhaps when only 1 effect, introduce split & flavor text?)
- Add shadow on some pictures that do not cut well (as a skin option, transparent gradient)
- Fix larger names
- Fix 20
- Fix 19
- Texte du Con Artist avec la bonne couleur; Pareil pour Kikuri
+1 -1
View File
@@ -14,7 +14,7 @@ from pathlib import Path
folder = Path(r"C:\Users\Luka\Documents\dev\cards-gen\output\heron")
for svg_file in folder.glob("*.svg"):
print(str(svg_file))
print("Processing" + str(svg_file))
cairosvg.svg2png(
url=str(svg_file),
scale=3,
+2 -2
View File
@@ -86,7 +86,7 @@
},
"17": {
"title": "Menace de Mort",
"flavor_text_type": "Takano",
"flavor_text_type": "Pas gentil",
"image_path": "../../img/skins/heron/017.png"
},
"18": {
@@ -97,7 +97,7 @@
"19": {
"title": "Niko Incendiaire",
"flavor_text_type": "gfhd;spfgljh.-",
"image_path": "../../img/skins/heron/019.gif"
"image_path": "../../img/skins/heron/019.png"
},
"20": {
"title": "Tit job",
+1 -1
View File
@@ -611,7 +611,7 @@ def create_effects(card: Card, effects: list[Effect], height: int, width: int, f
max(*[len(x) for x in flavor_text.split("\n")], len(flavor_text)) * font_width
)
# Take width in account
font_size = effect_text_size
font_size = effect_text_size - 1
font_size = min(
font_size, (font_size * 3) - line_width, font_size * width / (line_width or 1)
)