Commit Graph

293 Commits

Author SHA1 Message Date
Vivien Nicolas
ad7a06b1d5 Check for more missing tables in TrueType (sigh) 2011-06-20 03:01:09 +02:00
Vivien Nicolas
0197697d1f Add a basic embedded CMap reader 2011-06-20 02:52:30 +02:00
Vivien Nicolas
b3b0322446 Fix the encoding problem for TrueType 2011-06-20 00:09:50 +02:00
Vivien Nicolas
bf835f7aa5 Really pass the sanitizer (encoding is broken) 2011-06-19 11:07:03 +02:00
Vivien Nicolas
8a24a967c3 Make Helvetica and Helvetica bold from page 2 to pass the sanitizer 2011-06-19 09:29:28 +02:00
Vivien Nicolas
7e3c1340ff Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 2011-06-19 04:35:25 +02:00
Vivien Nicolas
2670aa680b Another undeclared variable caught by strict mode 2011-06-19 03:08:43 +02:00
Vivien Nicolas
a46ebe73ff Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors 2011-06-19 03:04:15 +02:00
Vivien Nicolas
7517256e54 Adding myself as a contributor 2011-06-19 02:36:47 +02:00
Vivien Nicolas
e62bd48a9e Use strict mode for js files 2011-06-19 02:35:28 +02:00
Vivien Nicolas
59bd7620de Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 2011-06-19 02:25:21 +02:00
Vivien Nicolas
8d9ffb1872 Use measureText instead of mozMeasureText (deprecated) 2011-06-18 21:54:53 +02:00
Vivien Nicolas
a53736b732 Merge remote branch 'upstream/master' 2011-06-18 21:53:52 +02:00
Andreas Gal
e9980c1558 remove toString code to avoid any future accidental implicit conversions 2011-06-18 01:18:21 -07:00
Andreas Gal
6dc697071e avoid toString conversion in lookup 2011-06-17 21:34:06 -07:00
Andreas Gal
5517602df0 speedup unicode/glyph conversion and cache translated strings in the font 2011-06-17 21:22:37 -07:00
Andreas Gal
2588eb054b IsInteger => IsInt 2011-06-17 20:17:10 -07:00
Andreas Gal
a4e1fba9ec even more error checking for font translation 2011-06-17 16:34:29 -07:00
Andreas Gal
050acaf5e0 add more error checking for font translation 2011-06-17 16:29:48 -07:00
Andreas Gal
22efbb3af3 rename test.html to viewer.html 2011-06-17 16:20:13 -07:00
Andreas Gal
735bfa5972 move cffStandardStrings into utils/ along with font_utils.js 2011-06-17 16:07:09 -07:00
Andreas Gal
1db4812c00 inline Encodings table into pdf.js and use getters for lazy construction 2011-06-17 15:48:17 -07:00
Vivien Nicolas
9eae948c2e Replace clearTimeout by clearInterval, otherwise we could end up drawing the page in an infinite loop 2011-06-17 23:39:17 +02:00
Vivien Nicolas
21ee01eb7c Fix wrong order of the 'div' command 2011-06-17 23:38:01 +02:00
Chris Jones
3309bc8ceb Merge pull request #18 from vingtetun/master
Do not assume charset is defined and move some fonts timing to the right place
2011-06-17 12:07:28 -07:00
Vivien Nicolas
4bd3308b78 Do not assume charset is defined and move some fonts timing to the right place 2011-06-17 20:29:34 +02:00
andreasgal
ecedfb52d5 Merge pull request #16 from vingtetun/master
Clean up some debug leftovers (mostly dump/logs/minor signature changes)
2011-06-17 11:14:40 -07:00
Vivien Nicolas
172dadb008 Clean up some debug leftovers 2011-06-17 13:55:42 +02:00
Chris Jones
370303f005 render at 1.5x scale 2011-06-17 01:19:59 -07:00
Andreas Gal
fd269facbc 2nd attempt to make glyph list integers 2011-06-17 01:03:21 -07:00
Andreas Gal
4184414501 revert commit 2311c954f8 2011-06-17 00:46:27 -07:00
Andreas Gal
2311c954f8 store unicode value as integer instead of hex string in glyphlist 2011-06-17 00:34:03 -07:00
Chris Jones
00bde52237 Merge pull request #13 from vingtetun/master
Fonts!
2011-06-17 00:20:57 -07:00
Vivien Nicolas
6f91d109c6 Rename PDFFonts.js to fonts.js 2011-06-17 09:11:03 +02:00
Vivien Nicolas
2b0fa98257 Merge with master 2011-06-17 09:06:19 +02:00
Andreas Gal
1b8f0883dd add blogs and twitter link 2011-06-17 14:45:50 +08:00
Vivien Nicolas
f8696259b7 Fix CIMM6/CIIM9 2011-06-17 08:36:52 +02:00
Vivien Nicolas
75baff40f4 Do not use stream when it is not necessary 2011-06-17 07:48:45 +02:00
Vivien Nicolas
7ec2ea1e2f Use a typed array in the CMAP construction function 2011-06-17 07:14:11 +02:00
Vivien Nicolas
ac020e26f1 Add a direct translation to one of the way to format charstring number in flattenCharstring (28, x, y) 2011-06-17 06:53:18 +02:00
Vivien Nicolas
fb9fb5e3fa Get rid or IsNum/IsString/IsArray in flattenCharstring 2011-06-17 06:44:16 +02:00
Chris Jones
7358b97eab Merge pull request #14 from debloper/master
Test-page updated to allow the user open local PDFs
2011-06-16 21:12:33 -07:00
Vivien Nicolas
bf44657825 Remove some leftovers from the previous patch 2011-06-17 06:06:24 +02:00
Vivien Nicolas
40d44174cf Rework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer now) 2011-06-17 06:02:29 +02:00
Andreas Gal
3430842c4d add blogs and twitter link 2011-06-16 09:37:15 -07:00
Vivien Nicolas
f56a742056 Remove some debug leftovers and add some comments about future directions for the code 2011-06-16 09:34:43 +02:00
Soumya Deb
2941da3a33 Test-page updated to allow the user open local PDFs 2011-06-16 12:14:02 +05:30
Vivien Nicolas
3dbfde89a3 Resolve the char->glyphs mapping issue 2011-06-16 03:55:45 +02:00
Vivien Nicolas
2e87e8ca83 Merge from gal's master branch (got a regression on the mapping between char->glyph) 2011-06-16 03:05:55 +02:00
Vivien Nicolas
15aad009c9 Change the nominalWidth to not use the format 28,b0,b1 but b0-139 in order to pass the sanitizer and disable TrueType support until it fully works 2011-06-16 02:17:45 +02:00