未验证 提交 c64a4527 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13998 from mooncaker816/splitByUnicode

Font: handle unicode string split properly
......@@ -40,7 +40,7 @@ Object.assign( Font.prototype, {
function createPaths( text, size, divisions, data ) {
var chars = String( text ).split( '' );
var chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // see #13988
var scale = size / data.resolution;
var line_height = ( data.boundingBox.yMax - data.boundingBox.yMin + data.underlineThickness ) * scale;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册