From 9234c315d5869580ae14bb5e721a89a4f8225529 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Tue, 6 Dec 2011 22:59:06 -0600 Subject: [PATCH] Fix the unicode symbols on the text layer --- src/fonts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fonts.js b/src/fonts.js index fd461bce5..52174b1e7 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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);