From ac163da4c877be93b876563f7898cfa7f474e13e Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Sat, 10 Sep 2011 20:02:42 +0200 Subject: [PATCH] Fix a small mistake for cmap format 0 --- fonts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fonts.js b/fonts.js index a8498bf59..a4e16dad5 100755 --- a/fonts.js +++ b/fonts.js @@ -934,7 +934,9 @@ var Font = (function Font() { deltas.push(index); var unicode = j + kCmapGlyphOffset; - encoding[j].unicode = unicode; + var mapping = encoding[j] || {}; + mapping.unicode = unicode; + encoding[j] = mapping; glyphs.push({ unicode: unicode }); } }