1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00
pdf.js/src/core
Jonas Jenwald 96a77e9d6a Add basic support for non-embedded Wingdings fonts
This is a tentative patch that adds *very* basic support for non-embedded Wingdings fonts (a Windows version of Dingbats), by falling back to the ZapfDingbats encoding. Obviously this approach will not work perfectly, but in my opinion it seems to work reasonably well in pratice.

Instead of this very simple patch, another option would be to try and include more complete glyph data for Wingdings, e.g. a Unicode map and glyph widths, similar to what was done for ZapfDingbats.
However there is, in my opinion, one important difference between Wingdings and ZapfDingbats: ZapfDingbats is part of the 14 standard fonts, which in previous versions of the PDF specification was assumed to be available in PDF readers. To improve compatibility with older files, it thus makes sense for us to include data for ZapfDingbats.
However Wingdings has never been a standard font in PDF files, hence PDF files using it *should* thus contain all the necessary font data.

Given the above, I thus believe that it should be OK to fall back to ZapfDingbats for now. If non-embedded Wingdings fonts turns out to be *a lot* more common, then we can revisit this later.

Fixes 4301 completely.
Fixes 4837 almost completely. With this patch the bullets are displayed correctly, but the arrows are not of the correct type.
Fixes `artofwar.pdf`, pages 14 and 15.
2014-12-09 00:28:22 +01:00
..
annotation.js Fix error in WidgetAnnotation 2014-10-16 18:08:24 +02:00
arithmetic_decoder.js Add strict equalities in src/core/arithmetic_decoder.js 2014-08-01 18:39:46 +02:00
bidi.js Add strict equalities in src/core/bidi.js 2014-08-01 18:39:46 +02:00
charsets.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
chunked_stream.js Replaces (chunk in this.loadedChunks) 2014-09-19 19:05:25 -05:00
cmap.js Fix the error handling for CMaps that fail to load 2014-08-14 16:29:10 +02:00
colorspace.js Fix handling of RGBA buffers in CalRGB colorspace (issue 5270) 2014-09-08 12:26:32 +02:00
core.js Add strict equalities in src/core/core.js 2014-08-01 18:40:10 +02:00
crypto.js AES cipher: make padding optional 2014-08-08 12:36:29 +02:00
evaluator.js fix passing null as Promise's onFullfilled (which is broken in Chrome 32) 2014-11-25 16:40:27 +04:00
font_renderer.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
fonts.js Add basic support for non-embedded Wingdings fonts 2014-12-09 00:28:22 +01:00
function.js Fix typed array assignment in the |constructPostScriptFromIRResult| function (issue 5470) 2014-11-04 12:17:27 +01:00
glyphlist.js Add basic support for ZapfDingbats 2014-09-03 21:54:04 +02:00
image.js Apply the GRAYSCALE_1BPP optimization when needsDecode is set. 2014-08-18 16:45:19 -07:00
jbig2.js Merge pull request #5114 from fkaelberer/fasterJBIG2decodeBitmap 2014-08-07 16:14:30 -05:00
jpg.js use fewer multiplications in convertYcckToRgb 2014-11-05 15:53:10 +01:00
jpx.js fixed multi precinct handling in jpx 2014-11-13 09:07:18 +01:00
metrics.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
murmurhash3.js Add strict equalities in src/core/murmurhash3.js 2014-08-01 21:56:04 +02:00
network.js Fix of pdf not loading on android (issue 5427) 2014-10-28 00:21:14 +05:30
obj.js Implemented NameTree.get() using binary search 2014-10-07 00:02:15 +02:00
parser.js Fix loading of inline JPEG images 2014-09-11 16:42:51 +02:00
pattern.js Merge pull request #5449 from CodingFabian/preferParamsOverArguments 2014-12-08 15:23:12 -06:00
pdf_manager.js Implement streaming using moz-chunk-arraybuffer 2014-09-19 19:05:25 -05:00
ps_parser.js Add strict equalities in src/core/ps_parser.js 2014-08-01 22:02:10 +02:00
stream.js Fixes decoding for CMYK jpegs. 2014-10-15 15:56:29 -05:00
worker.js Require destinations when they are needed and do not fetch all of them in advance 2014-10-06 22:26:18 +02:00