Commit Graph

816 Commits

Author SHA1 Message Date
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
Brendan Dahl
8c3fdd069a Merge pull request #2254 from yurydelendik/no-glyphs
Fixes font processing when no glyphs are found
2012-10-15 09:09:46 -07:00
Yury Delendik
b6ad7fd103 Defines at least one glyph if none was found 2012-10-15 11:08:50 -05:00
Brendan Dahl
565d13f670 Merge pull request #2213 from yurydelendik/bug762657
Removes PutBinaryImageData compatibility check (re:bug 762657)
2012-10-15 08:58:24 -07:00
Yury Delendik
c129ecea8a Partially reverts #2239 due to reftest fails 2012-10-15 09:20:52 -05:00
Yury Delendik
19002cc8a3 Merge pull request #2239 from yurydelendik/no-glyphs-message
Stops font processing when valid glyphs are absent in the font
2012-10-15 07:06:27 -07:00
Yury Delendik
62b2c5a030 Stops font processing when valid glyphs are absent in the font 2012-10-12 17:54:20 -05:00
Clement Skau
5edd6d253f Fixes Viewport rotation above 360 2012-10-11 00:27:35 +09:00
Yury Delendik
b5f952a63a Fixes font debugger; text builder api refactoring 2012-10-09 08:25:41 -05:00
Yury Delendik
ee133197ee Removes PutBinaryImageData compatibility check (re:bug 762657) 2012-10-07 21:09:00 -05:00
Yury Delendik
bc19b5581e Removes usage of print as log 2012-10-04 10:01:53 -05:00
Julian Viereck
47809fe316 Address yury's review comments 2012-09-26 19:46:06 +02:00
Julian Viereck
658c6936fc Tune whitespace insertion 2012-09-25 16:07:59 +02: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
Yury Delendik
574d626f04 Merge pull request #1906 from brendandahl/use-plain-blob
Use Blob constructor when available instead of deprecated MozBlobBuilder.
2012-09-24 17:11:32 -07:00
Brendan Dahl
739ee47865 Use Blob constructor when available instead of deprecated MozBlobBuilder. 2012-09-22 09:44:49 -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
Julian Viereck
e48530d391 Fix AppendText after API changes 2012-09-20 22:09:03 +02: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
Yury Delendik
59eca230fa Merge pull request #2131 from saebekassebil/metadata2
Metadata optimization
2012-09-20 10:31:19 -07:00
Julian Viereck
a33ba145bf Don't compute the string for the TextLayer in the canvas backend anymore and change the syntax of appendText 2012-09-20 17:15:55 +02:00
Julian Viereck
3d0e6da2ff Move some more font conversion into loadFont function to make type3 fonts work for now 2012-09-20 17:12:36 +02: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
Julian Viereck
fdb6a013c9 Fix unitialized text/dirs array 2012-09-20 17:10:52 +02:00
Julian Viereck
a525492f65 Make lint happy 2012-09-20 17:10:51 +02:00
Julian Viereck
6bc2a0b84a Remove spaces that don't make sense when using the text in divs 2012-09-20 17:10:51 +02:00
Julian Viereck
e22fc80d3e Add handling for gs in getTextContent 2012-09-20 17:10:51 +02:00
Julian Viereck
bd4434a7ea Apply bidi algorithm to the text in the worker 2012-09-20 17:10:51 +02:00
Julian Viereck
8d6565d1a8 Change the format of the BidiResult object. 2012-09-20 17:10:51 +02:00
Julian Viereck
897b99500e Fix typos that prevent space insertion for showSpaced in getTextContent 2012-09-20 17:10:51 +02:00
Julian Viereck
7432e596a1 Improve the space detection for the getTextContent function 2012-09-20 17:08:43 +02:00
Julian Viereck
9b9de87ac4 Undo some changes for now until there is support for font.spacedWidth 2012-09-20 17:08:43 +02:00
Julian Viereck
3a8426e179 Fix typo in new return value of bidi function 2012-09-20 17:08:42 +02:00
Julian Viereck
83c499595c Change the PDFJS.bidi function calls slightly to avoid creating a seperate object to pass to PDF.JS bidi and just pass in a string 2012-09-20 17:08:42 +02:00
Julian Viereck
668c2867d4 Change the format of textContent to be an array 2012-09-20 17:01:16 +02:00
Julian Viereck
a38c4bc729 Make getTextContent return offset array and improve the algorithm. Make
parts in viewer.js work again.
2012-09-20 17:01:15 +02:00
Yury Delendik
3d78ccd570 Renaming export to exportData 2012-09-20 09:38:59 -05:00
Julian Viereck
43f2db30b3 Fix current.x for type3 font word break 2012-09-19 22:19:21 +02: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
Brendan Dahl
8dc49a3c9b Merge pull request #2124 from yurydelendik/fallback-font
Provides right fallback fonts for text layer
2012-09-17 10:06:42 -07:00
Yury Delendik
8d506212a8 Adds heuristic for monospace font detection 2012-09-16 14:38:30 -05:00
Saebekassebil
c88924f411 Optimize metadata parsing 2012-09-15 18:54:08 +02:00
Yury Delendik
ac7b6aeff4 Provides right fallback fonts for text layer 2012-09-14 11:17:35 -07:00
Yury Delendik
45741c33a5 Fixes RTL text extraction 2012-09-14 10:26:46 -07:00