48 Commits (fc35a70acbd18b63f8340277249f5ab4b6d27c11)

Author SHA1 Message Date
Vivien Nicolas fc35a70acb Add a createPostTable function and remove the useless join('') calls 14 years ago
Chris Jones 57e7e798a6 fix strict-mode violations in chrome 14 years ago
Vivien Nicolas a772c9a2e2 Fill more gaps for Format 6 dense array 14 years ago
Vivien Nicolas e0c98ba3c6 Enhance the converter code by filling Format 6 dense array gaps 14 years ago
Vivien Nicolas 00df9b82ee Start of a TTF Format6 to Format4 converter (sigh) 14 years ago
Vivien Nicolas fdfd03b671 Support Format 6 cmap table, but does not pass the sanitizer yet 14 years ago
Vivien Nicolas 11a1ebaada Start displaying TrueType fonts 14 years ago
Vivien Nicolas ff6aaa02ee Get rid of the TrueType class, adapt the code to conventions and new code 14 years ago
Vivien Nicolas 083256634c Add a name to some anonyous functions 14 years ago
Vivien Nicolas 81532e9c03 Rename s2a, s16, s32 and do some dance inside the bind() code 14 years ago
Vivien Nicolas d7edbe28e9 Add a way to disable fonts that won't load 14 years ago
Andreas Gal be6347c28d remove remaining uses of integerToBytes in type1 font code 14 years ago
Andreas Gal 70887f617f assemble cmap table from strings instead of arrays 14 years ago
Andreas Gal f63af3e614 write font cmap using a string 14 years ago
Andreas Gal 83c1599cf7 simplify glyph segment writing code 14 years ago
Andreas Gal fa56770562 store ranges as [start, end], instead of storing all codes 14 years ago
Andreas Gal 2d2aee3c2e use Array.sort to calculate glyph ranges instead of large typed arrays 14 years ago
Vivien Nicolas 75f0930465 Add more TrueType rewriting magic ('post' table) 14 years ago
Vivien Nicolas ad7a06b1d5 Check for more missing tables in TrueType (sigh) 14 years ago
Andreas Gal b827da304f make createCMAPTable a nested function function 14 years ago
Andreas Gal 631b5df2c3 in preparation for using strings to write out font data, store constant blobs as strings 14 years ago
Andreas Gal f337d6105c write OTF header using a string, not an array 14 years ago
Andreas Gal e46a88b1dc rename conver to convert 14 years ago
Andreas Gal d3923569de make createOpenTypeHeader and createTableEntry inner functions of co(n)ver(t) so we can use an upvar to collect the output 14 years ago
Andreas Gal 458625d656 make createOpenTypeHeader and createTableEntry inner functions 14 years ago
Andreas Gal 75ad5aa016 add a closure around Font so we can hide helper functions in it 14 years ago
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 14 years ago
Andreas Gal d515d5ab7c handle surrogate pairs in glyph to unicode translation 14 years ago
Vivien Nicolas bf835f7aa5 Really pass the sanitizer (encoding is broken) 14 years ago
Vivien Nicolas 8a24a967c3 Make Helvetica and Helvetica bold from page 2 to pass the sanitizer 14 years ago
Chris Jones 92fa629d10 use strict mode and fix violators 14 years ago
Chris Jones d4a42a4e79 mozMeasureText() is non-standard and deprecated 14 years ago
Vivien Nicolas 7e3c1340ff Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 14 years ago
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 14 years ago
Vivien Nicolas e62bd48a9e Use strict mode for js files 14 years ago
Vivien Nicolas 59bd7620de Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 14 years ago
Vivien Nicolas 8d9ffb1872 Use measureText instead of mozMeasureText (deprecated) 14 years ago
Andreas Gal 6dc697071e avoid toString conversion in lookup 14 years ago
Andreas Gal 5517602df0 speedup unicode/glyph conversion and cache translated strings in the font 14 years ago
Andreas Gal 735bfa5972 move cffStandardStrings into utils/ along with font_utils.js 14 years ago
Vivien Nicolas 21ee01eb7c Fix wrong order of the 'div' command 14 years ago
Vivien Nicolas 172dadb008 Clean up some debug leftovers 14 years ago
Andreas Gal fd269facbc 2nd attempt to make glyph list integers 14 years ago
Andreas Gal 4184414501 revert commit 2311c954f8 14 years ago
Andreas Gal 2311c954f8 store unicode value as integer instead of hex string in glyphlist 14 years ago
Vivien Nicolas 6f91d109c6 Rename PDFFonts.js to fonts.js 14 years ago
Vivien Nicolas f8696259b7 Fix CIMM6/CIIM9 14 years ago
Vivien Nicolas 75baff40f4 Do not use stream when it is not necessary 14 years ago
Vivien Nicolas 7ec2ea1e2f Use a typed array in the CMAP construction function 14 years ago
Vivien Nicolas ac020e26f1 Add a direct translation to one of the way to format charstring number in flattenCharstring (28, x, y) 14 years ago