Commit Graph

243 Commits

Author SHA1 Message Date
Brendan Dahl
7d9938df5f Merge pull request #2520 from yurydelendik/disable-blues
Disables *Blue* values when HINT_ENABLED == false
2013-01-04 16:21:29 -08:00
Brendan Dahl
bf0abd61d1 Merge pull request #2505 from yurydelendik/refactor-cff-float
Refactors encodeFloat, font matrix and flex args
2013-01-04 09:24:58 -08:00
Yury Delendik
10bb6c9ec0 Refactors font matrix operations 2013-01-03 22:38:14 -06:00
Yury Delendik
ccfa0e1972 Refactors encodeFloat and flex args 2013-01-03 18:33:15 -06:00
Yury Delendik
eca6c6cb5d Disables *Blue* values when HINT_ENABLED == false 2013-01-03 17:06:52 -06:00
Yury Delendik
089b60d848 Merge pull request #2463 from brendandahl/remove-cid-keys
Remove cid dictionary values for normalized fonts.
2013-01-03 10:24:49 -08:00
Brendan Dahl
a235ec1441 Use CFF compiler for building Type1 font. 2012-12-21 14:11:58 -08:00
Brendan Dahl
acf64b3164 Add support for hmoveto and vmoveto during flex. 2012-12-20 11:14:10 -08:00
Brendan Dahl
852ff7753b Fix cff private dictionary key. 2012-12-14 12:44:39 -08:00
Brendan Dahl
575f2dd8b1 Remove cid dictionary values for normalized fonts. 2012-12-13 12:32:45 -08:00
Brendan Dahl
78498ce648 Merge pull request #2448 from yurydelendik/issue-2386
Fixes encoding in CFF fonts
2012-12-11 13:31:15 -08:00
Brendan Dahl
6ae135539d Warn on opentype fonts. 2012-12-10 14:59:23 -08:00
Yury Delendik
b63da8bc82 Fixes encoding reading in CFF fonts 2012-12-09 12:57:40 -06:00
Yury Delendik
a0bc215a86 Removes comment per #2372 2012-12-07 14:28:17 -06:00
Yury Delendik
033545cc16 Merge pull request #2392 from benbro/master
Workaround for Private Use Area characters in Chrome on Windows
2012-11-16 14:23:26 -08:00
benbro
9841bc3e8e Workaround for Private Use Area characters in Chrome on Windows 2012-11-16 23:49:02 +02:00
Brendan Dahl
9910699fac Merge pull request #2385 from yurydelendik/issue-2374
Rejects post table if maxp numGlyph does not match
2012-11-16 13:46:11 -08:00
Nicolas Pierron
f5e8838bb0 Ensure the loop counter is not interpreted as a double.
This patch improves pure JavaScript performances by 30% by removing double computations from Type1Parser_extractFontProgram. When parseInt is fed with non numerical values, it returns a NaN which flows into the loop counter which cause every operation to be computed as a double and every index to be trunctated as an int before reading a character.  This patch force the NaN value to be coerce as an integer by using a bitwise-or operation with zero.
2012-11-16 02:33:32 -08:00
Yury Delendik
0646d397eb Rejects post table if maxp numGlyph does not match 2012-11-14 16:17:06 -06:00
Brendan Dahl
d302746c6b Merge pull request #2352 from yurydelendik/issue-1718
Cleaning name table
2012-11-13 10:58:27 -08:00
Brendan Dahl
8d3980a43a Merge pull request #2263 from yurydelendik/tables-removal
Attempt to remove vtmx, and vhea tables...
2012-11-13 09:30:40 -08:00
Yury Delendik
05148e8e7d Removes vtmx and vhea tables; sanitizes fpgm and prep 2012-11-12 21:10:20 -06:00
Brendan Dahl
9f460a9a8f Merge pull request #2251 from yurydelendik/validate-charstrings
Validates type2 charstrings
2012-11-12 11:53:04 -08:00
waddlesplash
32fbf687ab Refactor names in various files.
web/viewer.js
src/fonts.js (& remove unused global)
src/evaluator.js
src/canvas.js
2012-11-10 14:59:13 -05:00
Yury Delendik
68ab17e4a3 Cleaning name table 2012-11-07 18:24:13 -06:00
Yury Delendik
610215bada Validate charstrings 2012-11-07 13:56:17 -06:00
Yury Delendik
4da7be8d28 Verifies some of the OS2 font table fields 2012-11-07 11:11:36 -06:00
Yury Delendik
fbe3d71663 Re-creates invalid post table 2012-11-07 11:03:08 -06:00
Brendan Dahl
ece9cd15d2 Merge pull request #2249 from yurydelendik/issue-2234
Reducing parameter of Mac->Win heuristic
2012-10-19 17:01:00 -07:00
Brendan Dahl
c8cf4458c6 Merge pull request #2245 from yurydelendik/issue-1912
Fixes reading CFF with two .notdef in charset
2012-10-16 09:24:21 -07:00
Brendan Dahl
336d5041dd Merge pull request #2243 from yurydelendik/issue-1233
Removes useless font tables for PDF rendering
2012-10-15 17:04:28 -07:00
Brendan Dahl
d76f4d735f Merge pull request #2244 from yurydelendik/issue-2074
Fixes cmap when 0xFFFF character is included
2012-10-15 16:27:37 -07:00
Brendan Dahl
c67cc874e8 Merge pull request #2215 from yurydelendik/issue-1836
Falls back to ErrorFont when font object is not available or corrupted
2012-10-15 11:51:09 -07:00
Brendan Dahl
846038991c Merge pull request #2214 from yurydelendik/issue-1859
Adds Type1 sbw command support for horizontal fonts
2012-10-15 10:07:36 -07:00
Yury Delendik
8c3a82ff4d Falls back to ErrorFont when font object is not available or corrupted 2012-10-15 11:48:45 -05:00
Yury Delendik
b09f0ccbaa Adds Type1 sbw command support for horizontal fonts 2012-10-15 11:40:55 -05:00
Yury Delendik
b6ad7fd103 Defines at least one glyph if none was found 2012-10-15 11:08:50 -05:00
Yury Delendik
c129ecea8a Partially reverts #2239 due to reftest fails 2012-10-15 09:20:52 -05:00
Yury Delendik
3ed6db69d0 Reducing parameter of Mac->Win heuristic 2012-10-14 17:52:14 -05:00
Yury Delendik
31b5f566d6 Fixes reading CFF with two .notdef in charset 2012-10-13 15:35:23 -05:00
Yury Delendik
7ea87c875e Fixes cmap when 0xFFFF character is included 2012-10-13 14:21:15 -05:00
Yury Delendik
e4c8121ed4 Suppresses useless for PDF rendering font tables 2012-10-13 11:41:44 -05:00
Yury Delendik
62b2c5a030 Stops font processing when valid glyphs are absent in the font 2012-10-12 17:54:20 -05:00
Julian Viereck
e98eba1b11 Merge pull request #2127 from jviereck/text-algo-3
Use the text extracted in the getTextContent function for the divs of the textLayer.
2012-09-25 05:52:46 -07:00
Julian Viereck
f1e0edbaa9 Address Yurys review comments 2012-09-22 11:18:26 +02:00
Adil Allawi
5bc2934014 Handle normalization of Arabic Unicode Presentation Forms A to Arabic Unicode 2012-09-22 08:10:53 +01:00
Adil Allawi
c04b4c1679 Handle normalization of Arabic Unicode Presentation Forms B to Arabic Unicode 2012-09-21 18:36:59 +01:00
Brendan Dahl
47340d557c Merge pull request #2145 from yurydelendik/fix-export-keyword
Renaming export to exportData
2012-09-20 21:30:40 -07:00
Yury Delendik
75e928c102 Merge pull request #2058 from Pimm/master
Small fixes for normal and potential post-compilation bugs
2012-09-20 11:36:55 -07:00
Julian Viereck
36d358fff8 Don't use shadow() for spaceWidth as otherwise sendering the font over to the mainthread causes issues if the worker used the property and the main thread tries to assign the spaceWidth to the getter function 2012-09-20 17:10:52 +02:00