1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

No suppressWarnings in Yury's encoding patch

This commit is contained in:
Artur Adib 2011-11-14 15:32:52 -05:00
parent 5c261b46cc
commit b1ae23772f

View file

@ -478,10 +478,10 @@ var CanvasGraphics = (function canvasGraphics() {
geom.hScale = tr[0] - bl[0];
geom.vScale = tr[1] - bl[1];
}
var spaceGlyph = font.charsToGlyphs(' ', true);
var spaceGlyph = font.charsToGlyphs(' ');
// Hack (sometimes space is not encoded)
if (spaceGlyph.length === 0 || spaceGlyph[0].width === 0)
spaceGlyph = font.charsToGlyphs('i', true);
spaceGlyph = font.charsToGlyphs('i');
// Fallback
if (spaceGlyph.length === 0 || spaceGlyph[0].width === 0)
spaceGlyph = [ {width:0} ];