Commit Graph

537 Commits

Author SHA1 Message Date
sbarman
7077ad5b67 Merge branch 'master' of github.com:andreasgal/pdf.js
Conflicts:
	pdf.js
2011-06-15 12:37:05 -07:00
Chris Jones
0c4e4d1651 implement some operators and add TODOs for remaining undefined ones 2011-06-15 14:24:44 -05:00
sbarman
a0375c0f0b cleaned up fetchIfRef, changed switch-case to array lookup, changed IsFunction to IsPDFFunction 2011-06-15 11:34:47 -07:00
Andreas Gal
815544ab81 fixes suggested by @brendaneich 2011-06-15 00:37:15 -07:00
Vivien Nicolas
0ad010ecbd Make Type1 glyphs use the default width they declare 2011-06-15 09:21:59 +02:00
Andreas Gal
595f00f82a measure load/compile/render times 2011-06-15 00:20:26 -07:00
Andreas Gal
02df7f8e58 clarify API a bit and hand in xref and resources to ease translation 2011-06-14 23:44:59 -07:00
Andreas Gal
cf4bca7813 completed async font loading framework 2011-06-14 23:41:26 -07:00
Andreas Gal
d94b3006a3 eagerly translate all fonts (a no-op currently) 2011-06-14 23:34:11 -07:00
Andreas Gal
662fab04ca pdf is using a dumb name, content makes much more sense than Contents 2011-06-14 23:22:19 -07:00
Andreas Gal
d1b9e4054a cache results of compilation 2011-06-14 23:16:53 -07:00
Andreas Gal
e8ce0b361d eagerly compile XForm objects 2011-06-14 22:54:49 -07:00
Vivien Nicolas
3fbeeccb96 Forgot to turn off some debug flags 2011-06-15 05:42:15 +02:00
Vivien Nicolas
78e36888fd Add Encodings.js and change the code to generate a CharSet per font, this will allow future changes to the OpenType font generator 2011-06-15 05:40:54 +02:00
Andreas Gal
e7d6b47099 return ready-to-run closure from compile that captures its objpool 2011-06-14 20:36:45 -07:00
Vivien Nicolas
32118c5650 Add a basic support for TrueType (generate fonts with OS/2 table) 2011-06-15 04:46:48 +02:00
Andreas Gal
7a0ba61a2a compile PDF command streams into JS code 2011-06-14 18:31:14 -07:00
sbarman
58ca7ab61c Cleaned up code, renamed PDFFunction class 2011-06-14 13:49:50 -07:00
Vivien Nicolas
bdf8577c48 Remove direct access to the underlying map object of dict in the fonts builder 2011-06-14 21:51:11 +02:00
Vivien Nicolas
363071aab9 Add XObjects fonts to the list of page fonts and has a forEach method to the Dict class 2011-06-14 21:38:59 +02:00
sbarman
3c12d9ee31 cleaned up code 2011-06-14 12:19:35 -07:00
sbarman
de9150b528 Implemented type 2 shading for the pdf (aka gradients) 2011-06-14 11:57:02 -07:00
Vivien Nicolas
3625ac93a3 Forgot to push function calls changes to get the unicode char from a random code 2011-06-14 19:40:36 +02:00
Vivien Nicolas
e21d7b3000 Add support for brackets around the header emails 2011-06-14 11:59:10 +02:00
Vivien Nicolas
0ebd3cdf93 Add support for ligatures, asterisks, etc. 2011-06-14 11:08:08 +02:00
Vivien Nicolas
2692222152 Fix an issue with the setTimeout method used for waiting for fonts to load 2011-06-14 04:52:21 +02:00
Vivien Nicolas
b0ee046b31 Make the fonts decoding code works with asynchronous data url 2011-06-14 04:35:46 +02:00
Vivien Nicolas
c03dd98075 Do not use makeSubStream in the CFF constructor 2011-06-13 23:23:13 +02:00
Vivien Nicolas
f9e3607601 Merge to upstream 2011-06-13 19:16:03 +02:00
Vivien Nicolas
2dc7bda2bc Merge the stream handling changes with the Font code 2011-06-13 18:59:46 +02:00
Vivien Nicolas
2c4a0aa269 Undo last patch, it broke font rendering 2011-06-13 07:06:51 +02:00
Andreas Gal
83e100b013 starting position of a stream is relative to the file, not the current stream 2011-06-13 12:47:40 +08:00
Andreas Gal
e0a6c8ef76 use const instead of var 2011-06-13 11:40:49 +08:00
Vivien Nicolas
9830b09f34 Small changes 2011-06-13 05:30:02 +02:00
Vivien Nicolas
4039e3e1e2 Clean up a bit the code to generate an OTF (again) 2011-06-13 04:46:21 +02:00
Vivien Nicolas
c6f5385d15 Clean up a bit the code to generate an OTF 2011-06-13 04:37:53 +02:00
Vivien Nicolas
cebdda3f35 Clean up a bit the CMAP ranges creation loop 2011-06-13 03:45:24 +02:00
Vivien Nicolas
65b8158c34 CMAP creation code is now more readable 2011-06-13 03:35:56 +02:00
Vivien Nicolas
a8ce1d24e9 Beginning of the separatation of the Type1/CFF/OTF code 2011-06-13 02:30:16 +02:00
Vivien Nicolas
0a135091de Add a root 'Font' class as the outside world API 2011-06-13 01:38:05 +02:00
Vivien Nicolas
84c2e99bef Add some missing glyphs 2011-06-12 23:41:57 +02:00
Vivien Nicolas
6e7e8ee64c OTF fonts works with the sanitizer (woot) 2011-06-12 21:53:39 +02:00
Vivien Nicolas
1f7aaf7b50 Add some code to make (the first one only...) font pass the sanitizer check 2011-06-12 14:23:39 +02:00
Andreas Gal
609842b76c remove debug code 2011-06-11 23:49:17 -07:00
Vivien Nicolas
066e4c45e0 Remove the Type2 validation data from the tree 2011-06-12 05:19:43 +02:00
Vivien Nicolas
632fcfed18 Turn on TrueType decoder even if the sanitizer prevent them to load at the moment 2011-06-12 03:10:54 +02:00
Vivien Nicolas
828367a1b4 Make the Type1 to OTF code active, even if the sanitizer prevent fonts to load at the moment 2011-06-12 03:00:45 +02:00
Vivien Nicolas
fdacb575c5 Default the unit per EM size to 1000 2011-06-12 01:56:21 +02:00
Vivien Nicolas
ce9224538e Fix a bunch of errors reported by OTS except the error about 3-0-4 MS symbol in cmap 2011-06-12 01:51:27 +02:00
Vivien Nicolas
e0beef4e25 No more errors for an empty unicode table 2011-06-12 00:54:47 +02:00