Fix the unicode symbols on the text layer

This commit is contained in:
notmasteryet 2011-12-06 22:59:06 -06:00
parent 9eae90a1ba
commit 9234c315d5

View File

@ -2142,7 +2142,8 @@ var Font = (function Font() {
break;
}
var unicodeChars = this.toUnicode ? this.toUnicode[charcode] : charcode;
var unicodeChars = !('toUnicode' in this) ? charcode :
this.toUnicode[charcode] || charcode;
if (typeof unicodeChars === 'number')
unicodeChars = String.fromCharCode(unicodeChars);