From f1c73edac42ef0ccd7fefd2c55fe6241b2a18721 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 11 Feb 2014 13:37:12 -0800 Subject: [PATCH] Fix symbol fonts with no file. --- src/core/fonts.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/fonts.js b/src/core/fonts.js index e6bf1f633..de2277fa3 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -2207,6 +2207,15 @@ var Font = (function FontClosure() { } this.toFontChar = map; this.toUnicode = map; + } else if (/Symbol/i.test(fontName)) { + var symbols = Encodings.SymbolSetEncoding; + for (var charCode in symbols) { + var fontChar = GlyphsUnicode[symbols[charCode]]; + if (!fontChar) { + continue; + } + this.toFontChar[charCode] = fontChar; + } } else { for (var charCode in this.toUnicode) { this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);