Skip to content

Commit 08781c4

Browse files
committed
Merge branch 'main' of github.com:leochocolat/three-msdf-text
2 parents 079e8c5 + dec830c commit 08781c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ const geometry = new MSDFTextGeometry(options);
9292

9393
- `font` (required) the BMFont definition which holds chars, kernings, etc
9494
- `text` (string) the text to layout. Newline characters (\n) will cause line breaks
95-
- `width` (number, optional) the desired width of the text box, causes word-wrapping and clipping in "pre" mode. Leave as undefined to remove
96-
- `word-wrapping` (default behaviour)
95+
- `width` (number, optional) the desired width of the text box, causes word-wrapping and clipping in "pre" mode. Leave as undefined to remove word-wrapping (default behaviour)
9796
- `mode` (string) a mode for word-wrapper; can be 'pre' (maintain spacing), or 'nowrap' (collapse whitespace but only break on newline characters), otherwise assumes normal word-wrap behaviour (collapse whitespace, break at width or newlines)
9897
- `align` (string) can be "left", "center" or "right" (default: left)
9998
- `letterSpacing` (number) the letter spacing in pixels (default: 0)

0 commit comments

Comments
 (0)