1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00
pdf.js/src/core
Jonas Jenwald 0fb31a4a9e Fallback in readCmapTable, instead of using error, for TrueType fonts with unsupported cmap formats (bug 1200096)
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1200096.

The problematic font has a `format 2` cmap, which we've never supported properly. Prior to PR 2606, we were able to fallback to a working state, despite not having proper support for that cmap format.

Obviously the best/correct solution would be to implement actual support for more cmap formats[1]. However, I'm hoping that a simple patch will be OK for now, given that:
 - `format 2` cmaps seem to be quite rare in practice, since this has been broken for 2.5 years before anyone noticed.
 - Having a simple patch will make potential uplifts a lot easier.

[1] See the specification at https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6cmap.html
2015-09-01 14:01:19 +02:00
..
annotation.js Refactor annotation code to use a factory 2015-07-29 00:31:51 +02:00
arithmetic_decoder.js cleaned whitespace 2015-02-17 11:07:37 -05:00
bidi.js Avoid more allocations for RTL text in bidi.js 2015-08-14 21:46:59 +02:00
charsets.js cleaned whitespace 2015-02-17 11:07:37 -05:00
chunked_stream.js Merge pull request #4990 from fkaelberer/refactor_chunked_stream 2015-07-13 16:51:35 -07:00
cmap.js Attempt to infer if a CMap file actually contains just a standard Identity-H/Identity-V map 2015-04-25 11:28:33 +02:00
colorspace.js Check if the Decode entry is non-default when deciding if JPEG images are natively supported/decodable (issue 6238) 2015-07-21 12:23:07 +02:00
core.js Refactor annotation code to use a factory 2015-07-29 00:31:51 +02:00
crypto.js Convert UTF8 encoded passwords to ISO-8859-1 for |R = 6| encryption (issue 6010) 2015-05-14 21:46:31 +02:00
evaluator.js cmaps: Use cmap.forEach instead of Array.forEach 2015-08-08 13:30:30 +02:00
font_renderer.js [PATCH] Add fallback for font loading when eval disabled 2015-08-13 14:33:18 -07:00
fonts.js Fallback in readCmapTable, instead of using error, for TrueType fonts with unsupported cmap formats (bug 1200096) 2015-09-01 14:01:19 +02:00
function.js Ensure that the result of |constructStichedFromIRResult| is a number (issue 6113) 2015-06-14 23:29:38 +02:00
glyphlist.js Add basic support for ZapfDingbats 2014-09-03 21:54:04 +02:00
image.js Only take the fast-path in PDFImage_createImageData for un-masked JPEG images with "standard" colour spaces (issue 6364) 2015-08-18 22:25:37 +02:00
jbig2.js avoid out of range array access in JBIG2 decoder 2015-01-23 23:50:09 +01:00
jpg.js Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761) 2015-03-10 13:07:09 +01:00
jpx.js cleaned whitespace 2015-02-17 11:07:37 -05:00
metrics.js cleaned whitespace 2015-02-17 11:07:37 -05:00
murmurhash3.js Removes B2G preprocessing directives. 2015-06-30 16:53:32 -05:00
network.js Fixes supportsMozChunked for node.js 2015-08-12 18:48:59 -05:00
obj.js Make XRef_indexObjects more robust against bad PDF files (issue 5752) 2015-08-21 20:33:02 +02:00
parser.js Merge pull request #6386 from Snuffleupagus/Parser_makeFilter-warn-on-empty-stream 2015-08-30 23:14:22 +02:00
pattern.js fix handling of flags 1-3 in tensor shading 2015-08-04 18:21:29 +02:00
pdf_manager.js cleaned whitespace 2015-02-17 11:07:37 -05:00
ps_parser.js Add strict equalities in src/core/ps_parser.js 2014-08-01 22:02:10 +02:00
stream.js Check if the Decode entry is non-default when deciding if JPEG images are natively supported/decodable (issue 6238) 2015-07-21 12:23:07 +02:00
worker.js Revert #5603 regarding Chrome range request bug 2015-04-30 22:37:52 +02:00