DocsAdvanced

Troubleshooting

Check the selected locale, resolved container width, font load and actual text. A single grapheme or protected punctuation sequence may exceed an extremely narrow width.

Wrapping does not apply

Check positive content width, visibility and display type; a hidden or inline element may not report measurable width.

ts
const options = { locale: 'en', width, measure };

More lines than expected

Compare actual content width, padding, font, size and letter spacing against the CSS baseline.

Long words overflow

Use breakLongWords true for grapheme splitting when a word is too wide. A single oversize grapheme can still overflow.

The wrong language rules are applied

Explicit locale overrides inherited Provider defaults; Korean is the fallback. Map i18n tags to supported locales.

RangeError with forced breaks

Check positions are internal UTF-16 grapheme boundaries and update old offsets after source changes.

Canvas and DOM differ

Fonts, spacing and browser measurement may differ. Set lang, wait for relevant fonts and inspect the measured content box.

Initial SSR lines change

Final line widths are only known after client measurement. Preserve source and initial forced breaks during hydration.

Duplicate Vue or Svelte text

Do not let the framework render children and the DOM adapter mutate them simultaneously; choose the correct ownership model.

Design system integration

Use Juliya as a dependency rather than copying its engine. Keep consuming lockfiles updated.

Supported cases

Plain text, headings and supported inline markup in Korean, English, Japanese and Simplified Chinese are the focus. Blocks and arbitrary rendered components are not measured.