text to path minor changes
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled

This commit is contained in:
zsviczian
2025-05-25 23:01:00 +02:00
parent d0845a7d68
commit ff404e4dd6

View File

@@ -1066,12 +1066,7 @@ async function fitTextToShape() {
// Place text along the path with natural spacing
const offsetValue = (parseInt(win.TextArchOffset ?? initialOffset) || 0);
// The `spacing` parameter (ea.measureText("i").width*0.3) is not used by distributeTextAlongPath
// as character advances are now calculated from substring widths.
// Pass 0 for spacing, or remove it if it's truly unused.
// For now, let's assume it might be intended for *extra* spacing beyond natural kerning.
// However, the current distributeTextAlongPath doesn't use the `spacing` parameter.
// Let's remove charWidths, charHeights, and spacing from the call as they are not used.
distributeTextAlongPath(text, pathPoints, pathID, objectIDs, offsetValue, isLeftToRight);
// Add all text characters to a group