Commit Graph

75 Commits

Author SHA1 Message Date
notmasteryet
49a3bae05b Fix the regression at 6073a03 2011-06-27 21:48:16 -05:00
Andreas Gal
4acd7daef8 Merge pull request #100 from notmasteryet/openweb-cover
CMYK colors; font fixes r=gal
2011-06-27 18:15:22 -07:00
notmasteryet
806fd49bbe Rollback defaults for font's Length1 and Length2 2011-06-27 19:56:19 -05:00
notmasteryet
48a2346275 CMYK colors; font fixes 2011-06-27 19:34:41 -05:00
Andreas Gal
94dae7e570 Merge pull request #96 from vingtetun/master
Fix windows/mac font loading detection. r=gal
2011-06-26 20:46:10 -07:00
Vivien Nicolas
db5c454ca1 Fix windows/mac font loading detection 2011-06-25 11:52:42 +02:00
Vivien Nicolas
f1f5617d72 Type1 fonts pass the sanitizer (again) 2011-06-25 11:22:28 +02:00
Vivien Nicolas
cbd89e26fd Do less manual conversion 2011-06-25 05:45:15 +02:00
Vivien Nicolas
159c986e6e Add the Type1 subrs into the CFF local subrs index 2011-06-25 05:12:35 +02:00
Andreas Gal
f317eae084 nits 2011-06-24 17:12:06 -04:00
Vivien Nicolas
3d85caa212 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
3955ed1b4c Fix a bunch of warnings from Firebug strict mode 2011-06-24 11:58:05 +02:00
Vivien Nicolas
86f197daba Start adding a FontLoader class to isolate the font-loaded hack 2011-06-24 11:47:22 +02:00
Vivien Nicolas
40006194ea Don't read the lsb instead of the width 2011-06-24 03:01:41 +02:00
Vivien Nicolas
d704bfacf4 Fix Windows 'hmtx' bust table 2011-06-24 02:58:17 +02:00
Vivien Nicolas
71da81b9de Merge branch 'master' of https://github.com/vingtetun/pdf.js 2011-06-24 01:39:55 +02:00
Vivien Nicolas
0a18434a2d Remove some useless var 2011-06-24 01:37:54 +02:00
Vivien Nicolas
b361450fca Merge remote branch 'upstream/master' 2011-06-24 00:29:32 +02:00
Julian Viereck
b47ec059c7 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
171ab51c56 Ensure divs used to make fonts load are not visible 2011-06-23 23:33:25 +02:00
Julian Viereck
78129970c6 Change postMessage to send only one object that holds the action and data. 2011-06-23 23:33:24 +02:00
Julian Viereck
229edf24d4 First pass on review: worker.js -> pdf_worker.js, Font.bind cleanup + other stuff 2011-06-23 23:33:24 +02:00
Julian Viereck
b151516416 Introduce ImageCanvas to handle canvas rendering in WebWorker 2011-06-23 23:33:22 +02:00
Julian Viereck
d9424a7135 Make fonts getting loaded by a very nasty hack 2011-06-23 23:33:22 +02:00
Julian Viereck
a8dcb0dcd6 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
b9a53361f8 Remove some hardcoded glue 2011-06-23 23:15:22 +02:00
Vivien Nicolas
873d6df1f5 Fix bustage of the previous commit 2011-06-23 22:20:55 +02:00
Vivien Nicolas
59e178946a Add a createPostTable function and remove the useless join('') calls 2011-06-23 22:11:16 +02:00
Chris Jones
35b6569f5e fix strict-mode violations in chrome 2011-06-22 18:50:38 -07:00
Vivien Nicolas
5f82fc46bf Fill more gaps for Format 6 dense array 2011-06-22 11:25:00 +02:00
Vivien Nicolas
4f7fb7539b Enhance the converter code by filling Format 6 dense array gaps 2011-06-22 10:56:31 +02:00
Vivien Nicolas
e9ed96d97c Start of a TTF Format6 to Format4 converter (sigh) 2011-06-22 07:46:41 +02:00
Vivien Nicolas
595a384ca7 Support Format 6 cmap table, but does not pass the sanitizer yet 2011-06-22 04:41:31 +02:00
Vivien Nicolas
34357eac19 Start displaying TrueType fonts 2011-06-21 21:11:59 +02:00
Vivien Nicolas
2315131b90 Get rid of the TrueType class, adapt the code to conventions and new code 2011-06-21 06:49:59 +02:00
Vivien Nicolas
aa7e1ac6d6 Add a name to some anonyous functions 2011-06-21 04:35:28 +02:00
Vivien Nicolas
8523896023 Rename s2a, s16, s32 and do some dance inside the bind() code 2011-06-21 04:30:28 +02:00
Vivien Nicolas
c4056aa99a Merge with master 2011-06-21 02:35:14 +02:00
Vivien Nicolas
2feec66b74 Add a way to disable fonts that won't load 2011-06-20 21:14:33 +02:00
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
Vivien Nicolas
c345a4c75e Add more TrueType rewriting magic ('post' table) 2011-06-20 08:20:31 +02:00
Vivien Nicolas
5c4f26019e Check for more missing tables in TrueType (sigh) 2011-06-20 03:01:09 +02: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