d3plus / d3plus-text

A smart SVG text box with line wrapping and automatic font size scaling.
MIT License
105 stars 19 forks source link

text wrapping doesn't work properly when sentence contains both Chinese and English #94

Open Adagio-cantabile opened 6 years ago

Adagio-cantabile commented 6 years ago

Hi, I've read your blog post https://blog.datawheel.us/english-is-not-chinese-69b43959bb47, thanks for the work! But the example does not work when Chinese is combined with English, when putting an English sentence between, spaces between English words does not show up.

Expected Behavior

Spaces of English words show correctly

Current Behavior

Spaces between English words disappears

Steps to Reproduce (for bugs)

http://jsfiddle.net/gest45z9/12/

Your Environment