@blorkfield/overlay-core 0.5.9 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2314,7 +2314,8 @@ var OverlayScene = class {
2314
2314
  for (let i = 0; i < chars.length; i++) {
2315
2315
  const char = chars[i];
2316
2316
  if (char === " ") {
2317
- currentX += 20;
2317
+ const spaceWidth = config.letterSpacing ?? letterSize;
2318
+ currentX += spaceWidth;
2318
2319
  globalCharIndex++;
2319
2320
  if (inWord) {
2320
2321
  currentWordIndex++;