Commit Graph

372 Commits

Author SHA1 Message Date
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
Chris Jones
92fa629d10 use strict mode and fix violators 2011-06-18 23:18:46 -07:00
Chris Jones
d4a42a4e79 mozMeasureText() is non-standard and deprecated 2011-06-18 22:04:36 -07: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
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
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
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
735bfa5972 move cffStandardStrings into utils/ along with font_utils.js 2011-06-17 16:07:09 -07:00
Vivien Nicolas
21ee01eb7c Fix wrong order of the 'div' command 2011-06-17 23:38:01 +02:00
Vivien Nicolas
172dadb008 Clean up some debug leftovers 2011-06-17 13:55:42 +02: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
Vivien Nicolas
6f91d109c6 Rename PDFFonts.js to fonts.js 2011-06-17 09:11:03 +02:00