Merge pull request #907 from notmasteryet/tree-43
Fixes the unicode symbols on the text layer
This commit is contained in:
commit
4a9275268d
@ -2142,7 +2142,8 @@ var Font = (function Font() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var unicodeChars = this.toUnicode ? this.toUnicode[charcode] : charcode;
|
var unicodeChars = !('toUnicode' in this) ? charcode :
|
||||||
|
this.toUnicode[charcode] || charcode;
|
||||||
if (typeof unicodeChars === 'number')
|
if (typeof unicodeChars === 'number')
|
||||||
unicodeChars = String.fromCharCode(unicodeChars);
|
unicodeChars = String.fromCharCode(unicodeChars);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user