I've done some testing, and whenever the width: num, option is used, pdfkit crashes, (after a while of nothing). I'm currently using it on a node.js server.
Trying to manually set the width in the interactive demo is also crashing the browser. Setting it to a higher number (in the thousands) is fine, but trying to set it to something lower than the default seems trigger a crash.
I've a crash if text width < 13
Looks like it fails into infinity loop if available width is less than 1 glyph. Any news on it?
I think this is solved with latest merge
Should be fixed by #987
Most helpful comment
I've a crash if text width < 13