41 Commits (24e541e9de4f551757d1c3c41a4eb5acac9d0324)

Author SHA1 Message Date
Vivien Nicolas 2315131b90 Get rid of the TrueType class, adapt the code to conventions and new code 14 years ago
Vivien Nicolas aa7e1ac6d6 Add a name to some anonyous functions 14 years ago
Vivien Nicolas 8523896023 Rename s2a, s16, s32 and do some dance inside the bind() code 14 years ago
Vivien Nicolas 2feec66b74 Add a way to disable fonts that won't load 14 years ago
Andreas Gal f3fcbd0fbc remove remaining uses of integerToBytes in type1 font code 14 years ago
Andreas Gal 0c948d7b06 assemble cmap table from strings instead of arrays 14 years ago
Andreas Gal 32880025fc write font cmap using a string 14 years ago
Andreas Gal e97f74f6e3 simplify glyph segment writing code 14 years ago
Andreas Gal 5f75130fbf store ranges as [start, end], instead of storing all codes 14 years ago
Andreas Gal 52e1631030 use Array.sort to calculate glyph ranges instead of large typed arrays 14 years ago
Vivien Nicolas c345a4c75e Add more TrueType rewriting magic ('post' table) 14 years ago
Vivien Nicolas 5c4f26019e Check for more missing tables in TrueType (sigh) 14 years ago
Andreas Gal 4fc8a1fa75 make createCMAPTable a nested function function 14 years ago
Andreas Gal a118f9035a in preparation for using strings to write out font data, store constant blobs as strings 14 years ago
Andreas Gal c09ee48094 write OTF header using a string, not an array 14 years ago
Andreas Gal bb40d20eae rename conver to convert 14 years ago
Andreas Gal 1a51057417 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 886054080e make createOpenTypeHeader and createTableEntry inner functions 14 years ago
Andreas Gal f6e85f00cb add a closure around Font so we can hide helper functions in it 14 years ago
Andreas Gal 7bb098dfc7 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 5afd963c8a handle surrogate pairs in glyph to unicode translation 14 years ago
Vivien Nicolas ca61249db1 Really pass the sanitizer (encoding is broken) 14 years ago
Vivien Nicolas c1fc38725a Make Helvetica and Helvetica bold from page 2 to pass the sanitizer 14 years ago
Chris Jones 23e19c08b1 use strict mode and fix violators 14 years ago
Chris Jones 4c018956f2 mozMeasureText() is non-standard and deprecated 14 years ago
Vivien Nicolas b0cde50e21 Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 14 years ago
Vivien Nicolas 0ddf9a56a0 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 f4282f9802 Use strict mode for js files 14 years ago
Vivien Nicolas dd5c87dfdc Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 14 years ago
Vivien Nicolas f1e8b23f30 Use measureText instead of mozMeasureText (deprecated) 14 years ago
Andreas Gal 494227dfcc avoid toString conversion in lookup 14 years ago
Andreas Gal d2e18d35b5 speedup unicode/glyph conversion and cache translated strings in the font 14 years ago
Andreas Gal 47a8303512 move cffStandardStrings into utils/ along with font_utils.js 14 years ago
Vivien Nicolas a705db84b0 Fix wrong order of the 'div' command 14 years ago
Vivien Nicolas 1980f4ef42 Clean up some debug leftovers 14 years ago
Andreas Gal 416fc7865f 2nd attempt to make glyph list integers 14 years ago
Andreas Gal 995c825cc5 revert commit 2311c954f8 14 years ago
Andreas Gal 5625a667ff store unicode value as integer instead of hex string in glyphlist 14 years ago
Vivien Nicolas 446e958b5d Rename PDFFonts.js to fonts.js 14 years ago
Vivien Nicolas b5915ab3cd Fix CIMM6/CIIM9 14 years ago
Vivien Nicolas 35ceea1ff2 Do not use stream when it is not necessary 14 years ago
Vivien Nicolas d31bc90c85 Use a typed array in the CMAP construction function 14 years ago
Vivien Nicolas 89c9bc39de Add a direct translation to one of the way to format charstring number in flattenCharstring (28, x, y) 14 years ago
Vivien Nicolas 01847a0e29 Get rid or IsNum/IsString/IsArray in flattenCharstring 14 years ago
Vivien Nicolas 88512fbdd9 Remove some leftovers from the previous patch 14 years ago
Vivien Nicolas eb6f7499dc Rework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer now) 14 years ago
Vivien Nicolas 675b2f0471 Remove some debug leftovers and add some comments about future directions for the code 14 years ago
Vivien Nicolas c9e0b05678 Resolve the char->glyphs mapping issue 14 years ago
Vivien Nicolas 1923337bab 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 14 years ago
Vivien Nicolas 509d608a3a Use spaces to compare font size to detect when the @font-face rule works, this seems to be more accurate 14 years ago