pdf.js/src/core
Jonas Jenwald dfe9015a43 Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894)
This patch adds a `getUnicodeForGlyph` helper function, which is used to recover Unicode values for non-standard glyph names.

Some PDF generators, e.g. Scribus PDF, use improper `uniXXXX` glyph names which breaks the glyph mapping. We can avoid this by converting them to "standard" glyph names instead.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1132849.
Fixes 6893.
Fixes 6894.
2016-03-09 19:37:15 +01:00
..
annotation.js Group popup creation code and apply it to more annotation types 2016-02-25 00:35:45 +01:00
arithmetic_decoder.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
bidi.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
charsets.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
chunked_stream.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
cmap.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
colorspace.js Get rid of getAll usage in colorspace.js 2016-02-11 11:59:26 +01:00
crypto.js Better crypto key length recovery. 2015-12-29 15:10:38 -06:00
document.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
encodings.js Refactor Encodings 2016-01-28 11:32:59 -06:00
evaluator.js Remove getAll from EvaluatorPreprocessor_read 2016-02-12 22:31:50 +01:00
font_renderer.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
fonts.js Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 2016-03-09 19:37:15 +01:00
function.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
glyphlist.js Lazify GlyphsUnicode. 2016-01-28 11:32:59 -06:00
image.js Adjust a comment discussing transferred ArrayBuffers to refer to those buffers being detached, not neutered. This change makes the comment consistent with terminology used in the ECMAScript specification. 2016-01-28 14:52:07 -08:00
jbig2.js Remove unused variables 2015-12-16 23:52:16 +01:00
jpg.js Update JpegImage.getData to support forceRGBoutput for images with numComponents === 1 (issue 6066) 2016-02-18 10:12:37 +01:00
jpx.js Remove unused variables 2015-12-16 23:52:16 +01:00
metrics.js Lazify Metrics 2016-01-28 12:11:46 -06:00
murmurhash3.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
network.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
obj.js Merge pull request #6988 from timvandermeij/fileattachment-annotation 2016-02-24 12:58:06 +01:00
parser.js Merge pull request #6915 from yurydelendik/lookuptables 2016-01-28 15:01:06 -06:00
pattern.js shading-pattern: Decreased Shadings.SMALL_NUMBER 2016-01-06 15:26:40 +01:00
pdf_manager.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
primitives.js Remove Dict_getAll since it is now unused 2016-02-12 22:32:07 +01:00
ps_parser.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
standard_fonts.js Lazify stdFontMap, serifFonts, GlyphMapForStandardFonts 2016-01-28 11:51:54 -06:00
stream.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
unicode.js Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 2016-03-09 19:37:15 +01:00
worker.js Reverts back un-need change made at #6879. 2016-03-02 09:57:33 -06:00