Commit Graph

25 Commits

Author SHA1 Message Date
Andreas Gal
f3fcbd0fbc remove remaining uses of integerToBytes in type1 font code 2011-06-20 14:42:39 -04:00
Andreas Gal
0c948d7b06 assemble cmap table from strings instead of arrays 2011-06-20 04:27:21 -04:00
Andreas Gal
32880025fc write font cmap using a string 2011-06-20 04:20:51 -04:00
Andreas Gal
e97f74f6e3 simplify glyph segment writing code 2011-06-20 04:16:41 -04:00
Andreas Gal
5f75130fbf store ranges as [start, end], instead of storing all codes 2011-06-20 03:49:40 -04:00
Andreas Gal
52e1631030 use Array.sort to calculate glyph ranges instead of large typed arrays 2011-06-20 03:33:52 -04:00
Andreas Gal
4fc8a1fa75 make createCMAPTable a nested function function 2011-06-19 16:35:32 -07:00
Andreas Gal
a118f9035a 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
c09ee48094 write OTF header using a string, not an array 2011-06-19 16:13:59 -07:00
Andreas Gal
bb40d20eae rename conver to convert 2011-06-19 15:58:30 -07:00
Andreas Gal
1a51057417 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
886054080e make createOpenTypeHeader and createTableEntry inner functions 2011-06-19 15:54:27 -07:00
Andreas Gal
f6e85f00cb add a closure around Font so we can hide helper functions in it 2011-06-19 15:46:58 -07:00
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 2011-06-19 15:30:55 -07:00
Andreas Gal
5afd963c8a handle surrogate pairs in glyph to unicode translation 2011-06-19 15:14:07 -07:00
Chris Jones
23e19c08b1 use strict mode and fix violators 2011-06-18 23:18:46 -07:00
Chris Jones
4c018956f2 mozMeasureText() is non-standard and deprecated 2011-06-18 22:04:36 -07:00
Andreas Gal
494227dfcc avoid toString conversion in lookup 2011-06-17 21:34:06 -07:00
Andreas Gal
d2e18d35b5 speedup unicode/glyph conversion and cache translated strings in the font 2011-06-17 21:22:37 -07:00
Andreas Gal
47a8303512 move cffStandardStrings into utils/ along with font_utils.js 2011-06-17 16:07:09 -07:00
Vivien Nicolas
1980f4ef42 Clean up some debug leftovers 2011-06-17 13:55:42 +02:00
Andreas Gal
416fc7865f 2nd attempt to make glyph list integers 2011-06-17 01:03:21 -07:00
Andreas Gal
995c825cc5 revert commit 2311c954f8 2011-06-17 00:46:27 -07:00
Andreas Gal
5625a667ff store unicode value as integer instead of hex string in glyphlist 2011-06-17 00:34:03 -07:00
Vivien Nicolas
446e958b5d Rename PDFFonts.js to fonts.js 2011-06-17 09:11:03 +02:00