Commit Graph

67 Commits

Author SHA1 Message Date
Vivien Nicolas
29eae2c468 Do less manual conversion 2011-06-25 05:45:15 +02:00
Vivien Nicolas
7bc26ba127 Add the Type1 subrs into the CFF local subrs index 2011-06-25 05:12:35 +02:00
Vivien Nicolas
c1c8ca4ef3 Do not add the font-loader canvas to the page dom to save some load time 2011-06-24 21:25:08 +02:00
Vivien Nicolas
26389c083a Fix a bunch of warnings from Firebug strict mode 2011-06-24 11:58:05 +02:00
Vivien Nicolas
07ca9bfec5 Start adding a FontLoader class to isolate the font-loaded hack 2011-06-24 11:47:22 +02:00
Vivien Nicolas
bc7e2b0110 Don't read the lsb instead of the width 2011-06-24 03:01:41 +02:00
Vivien Nicolas
5443714d34 Fix Windows 'hmtx' bust table 2011-06-24 02:58:17 +02:00
Vivien Nicolas
69449f7346 Merge branch 'master' of https://github.com/vingtetun/pdf.js 2011-06-24 01:39:55 +02:00
Vivien Nicolas
df406d43a1 Remove some useless var 2011-06-24 01:37:54 +02:00
Vivien Nicolas
a4bb3cba5b Merge remote branch 'upstream/master' 2011-06-24 00:29:32 +02:00
Julian Viereck
3bef1534b4 Reverts parts of 60f4d16360: Use old font-is-loaded mechanism + some code refactoring to add bindDOM and bindWorker. 2011-06-23 23:33:25 +02:00
Julian Viereck
4b27045d2e Ensure divs used to make fonts load are not visible 2011-06-23 23:33:25 +02:00
Julian Viereck
da7f555fd7 Change postMessage to send only one object that holds the action and data. 2011-06-23 23:33:24 +02:00
Julian Viereck
a3d815074d First pass on review: worker.js -> pdf_worker.js, Font.bind cleanup + other stuff 2011-06-23 23:33:24 +02:00
Julian Viereck
fc007b99d0 Introduce ImageCanvas to handle canvas rendering in WebWorker 2011-06-23 23:33:22 +02:00
Julian Viereck
61b76c7e87 Make fonts getting loaded by a very nasty hack 2011-06-23 23:33:22 +02:00
Julian Viereck
e15328800a Most working, but once you add the font-css file to the web page, there is no font drawn at all 2011-06-23 23:32:24 +02:00
Vivien Nicolas
4d155983c5 Remove some hardcoded glue 2011-06-23 23:15:22 +02:00
Vivien Nicolas
ef418de40b Fix bustage of the previous commit 2011-06-23 22:20:55 +02:00
Vivien Nicolas
fc35a70acb Add a createPostTable function and remove the useless join('') calls 2011-06-23 22:11:16 +02:00
Chris Jones
57e7e798a6 fix strict-mode violations in chrome 2011-06-22 18:50:38 -07:00
Vivien Nicolas
a772c9a2e2 Fill more gaps for Format 6 dense array 2011-06-22 11:25:00 +02:00
Vivien Nicolas
e0c98ba3c6 Enhance the converter code by filling Format 6 dense array gaps 2011-06-22 10:56:31 +02:00
Vivien Nicolas
00df9b82ee Start of a TTF Format6 to Format4 converter (sigh) 2011-06-22 07:46:41 +02:00
Vivien Nicolas
fdfd03b671 Support Format 6 cmap table, but does not pass the sanitizer yet 2011-06-22 04:41:31 +02:00
Vivien Nicolas
11a1ebaada Start displaying TrueType fonts 2011-06-21 21:11:59 +02:00
Vivien Nicolas
ff6aaa02ee Get rid of the TrueType class, adapt the code to conventions and new code 2011-06-21 06:49:59 +02:00
Vivien Nicolas
083256634c Add a name to some anonyous functions 2011-06-21 04:35:28 +02:00
Vivien Nicolas
81532e9c03 Rename s2a, s16, s32 and do some dance inside the bind() code 2011-06-21 04:30:28 +02:00
Vivien Nicolas
d923953ee3 Merge with master 2011-06-21 02:35:14 +02:00
Vivien Nicolas
d7edbe28e9 Add a way to disable fonts that won't load 2011-06-20 21:14:33 +02:00
Andreas Gal
be6347c28d remove remaining uses of integerToBytes in type1 font code 2011-06-20 14:42:39 -04:00
Andreas Gal
70887f617f assemble cmap table from strings instead of arrays 2011-06-20 04:27:21 -04:00
Andreas Gal
f63af3e614 write font cmap using a string 2011-06-20 04:20:51 -04:00
Andreas Gal
83c1599cf7 simplify glyph segment writing code 2011-06-20 04:16:41 -04:00
Andreas Gal
fa56770562 store ranges as [start, end], instead of storing all codes 2011-06-20 03:49:40 -04:00
Andreas Gal
2d2aee3c2e use Array.sort to calculate glyph ranges instead of large typed arrays 2011-06-20 03:33:52 -04:00
Vivien Nicolas
75f0930465 Add more TrueType rewriting magic ('post' table) 2011-06-20 08:20:31 +02:00
Vivien Nicolas
ad7a06b1d5 Check for more missing tables in TrueType (sigh) 2011-06-20 03:01:09 +02:00
Andreas Gal
b827da304f make createCMAPTable a nested function function 2011-06-19 16:35:32 -07:00
Andreas Gal
631b5df2c3 in preparation for using strings to write out font data, store constant blobs as strings 2011-06-19 16:32:26 -07:00
Andreas Gal
f337d6105c write OTF header using a string, not an array 2011-06-19 16:13:59 -07:00
Andreas Gal
e46a88b1dc rename conver to convert 2011-06-19 15:58:30 -07:00
Andreas Gal
d3923569de make createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so we can use an upvar to collect the output 2011-06-19 15:58:02 -07:00
Andreas Gal
458625d656 make createOpenTypeHeader and createTableEntry inner functions 2011-06-19 15:54:27 -07:00
Andreas Gal
75ad5aa016 add a closure around Font so we can hide helper functions in it 2011-06-19 15:46:58 -07:00
Andreas Gal
5001ee7120 don't use an array to translate from a typed array to a string, and always store font data as typed array, never as a stream 2011-06-19 15:30:55 -07:00
Andreas Gal
d515d5ab7c handle surrogate pairs in glyph to unicode translation 2011-06-19 15:14:07 -07: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