Brendan Dahl
6ae135539d
Warn on opentype fonts.
2012-12-10 14:59:23 -08: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
Yury Delendik
3d78ccd570
Renaming export to exportData
2012-09-20 09:38:59 -05:00
Brendan Dahl
81e708bf0f
Merge pull request #2118 from yurydelendik/disable-font-hack
...
Removing font loading hack from MOZCENTRAL
2012-09-18 09:17:05 -07:00
Yury Delendik
ac7b6aeff4
Provides right fallback fonts for text layer
2012-09-14 11:17:35 -07:00
Yury Delendik
38bb3b4880
Removing font loading hack from MOZCENTRAL
2012-09-13 16:45:56 -07:00
Yury Delendik
e086cf36f4
Refactor text extraction / font loading logic
2012-09-13 15:12:42 -07:00
Yury Delendik
9fba150dd2
Move font translation to the worker
2012-09-12 17:31:04 -07:00
Brendan Dahl
59016bcf59
Merge pull request #2082 from yurydelendik/chrome-fontload
...
Workaround for chrome's issue 145227
2012-09-07 08:50:55 -07:00
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
2012-08-31 15:48:21 -07:00
Pimm Hogeling
0fbbc5a840
Syntax changed that will help minifiers/compilers (such as the Closure Compiler) in their processing. In particular, preventing said minifiers/compilers from making dangerous renames.
2012-08-31 13:40:37 +02:00
Pimm Hogeling
438e3c8f6d
Fixes for subtile bugs that were introduced in 59283bdf6d
and 99440ab691
, among others.
2012-08-31 13:37:44 +02:00
Yury Delendik
deedb0a911
Workaround for chrome's issue 145227
2012-08-29 19:16:57 -05:00
Artur Adib
8e50da78ee
Merge pull request #2050 from yurydelendik/issue-2040
...
Fixes incorrect font type and prevents future this.objs.objs[fonts[i]] ...
2012-08-29 14:47:32 -07:00