Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
812f4784fd |
@@ -503,7 +503,8 @@ function generatePostcardSVG(text, format, options = {}) {
|
||||
}
|
||||
|
||||
// Text links (L-förmig). Nur DER Text kann „zu lang" sein (Nutzer kürzt ihn).
|
||||
const baseline0 = mmToPx(14) + fontSizePx;
|
||||
// Etwas Abstand nach dem Absender (Absender endet bei y≈12 mm).
|
||||
const baseline0 = mmToPx(18) + fontSizePx;
|
||||
bodyLineLimit = Math.max(1, Math.floor((mmToPx(maxYmm) - baseline0) / lineHeightPx) + 1);
|
||||
if (body) {
|
||||
const bodyLines = flowVariabel(body, fontSizePx, baseline0, lineHeightPx);
|
||||
@@ -561,8 +562,9 @@ function generatePostcardSVG(text, format, options = {}) {
|
||||
/>`)
|
||||
.join('\n ');
|
||||
|
||||
// Trennstrich (solide Linie, 1,2 mm breit) zwischen Text und Adressfeld.
|
||||
const trennstrich = `<path d="M ${mmToPx(trennXmm).toFixed(1)} ${mmToPx(addrTopMm).toFixed(1)} L ${mmToPx(trennXmm).toFixed(1)} ${mmToPx(maxYmm).toFixed(1)}" stroke="#000000" stroke-width="${mmToPx(1.2).toFixed(1)}" stroke-linecap="butt" fill="none"/>`;
|
||||
// Trennstrich: einfache Kugelschreiber-Linie (Single-Stroke, keine Füllung) –
|
||||
// gleiche Strichstärke wie die Handschrift, damit die Ballpoint-Optik greift.
|
||||
const trennstrich = `<path d="M ${mmToPx(trennXmm).toFixed(1)} ${mmToPx(addrTopMm).toFixed(1)} L ${mmToPx(trennXmm).toFixed(1)} ${mmToPx(maxYmm).toFixed(1)}" stroke="#000000" stroke-width="0.6" fill="none" stroke-linecap="round" vector-effect="non-scaling-stroke"/>`;
|
||||
|
||||
const svg = `<svg xmlns="http://www.w3.org/2000/svg"
|
||||
width="${W}mm"
|
||||
|
||||
Reference in New Issue
Block a user