This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user