Refine rendering and packing logic

This commit is contained in:
ajp_anton
2026-06-03 00:10:39 +00:00
parent 774de1c4f5
commit 1696476025
8 changed files with 1073 additions and 660 deletions
+3 -9
View File
@@ -61,17 +61,10 @@ CARD_SIZE_OPTIONS_MM = {
TEXT_INDENT_CHARS = 2
ITALIC_SHEAR = 0.18
BOLD_OFFSETS = ((1, 0), (0, 1), (1, 1))
BASE_CARD_SIZE = (825, 1125)
FIXED_CROP = (70, 73, 70, 73)
SIDE_EDGE_REPLACE_BANDS = (
(0.0, 0.2, 10),
(0.2, 0.4, 3),
(0.4, 0.6, 1),
(0.6, 0.8, 3),
(0.8, 1.0, 10),
)
TOP_BOTTOM_EDGE_REPLACE_PX = 10
CHARACTER_EDGE_REPLACE_PX = 3
DEFAULT_SOURCE_CROP_PX = 37.5
TEXT_SUPERSAMPLING = 3
MAX_WORKERS = 8
PDF_COMPRESSION_LEVEL = 9
@@ -96,6 +89,7 @@ class BuildConfig:
clean_edge_mm: float
output_pdf_name: str
delete_temp: bool | None
text_supersampling: int
render_only: bool = False