From f7fea015a905c8b01861a5baab25b7503b9d49b8 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 24 Feb 2014 17:39:51 -0800 Subject: [PATCH] Remove isFixedPitch check for now. --- src/core/fonts.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/core/fonts.js b/src/core/fonts.js index de2277fa3..cbbf2bb16 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -3970,14 +3970,6 @@ var Font = (function FontClosure() { }, convert: function Font_convert(fontName, font, properties) { - function isFixedPitch(glyphs) { - for (var i = 0, ii = glyphs.length - 1; i < ii; i++) { - if (glyphs[i] != glyphs[i + 1]) - return false; - } - return true; - } - // The offsets object holds at the same time a representation of where // to write the table entry information about a table and another offset // representing the offset where to draw the actual data of a particular @@ -3991,7 +3983,8 @@ var Font = (function FontClosure() { createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9); - properties.fixedPitch = false; //isFixedPitch(charstrings); + // TODO: Check the charstring widths to determine this. + properties.fixedPitch = false; var mapping = font.getGlyphMapping(properties); var newMapping = adjustMapping(mapping, properties);