Commit Graph

312 Commits

Author SHA1 Message Date
Vivien Nicolas
59c4ba0fb9 Fix for issue #418 2011-08-31 23:26:34 +02:00
Vivien Nicolas
763bd7059a Fix a warning when the destination link point to nothing 2011-08-31 14:17:57 +02:00
Vivien Nicolas
19c6cef7cc Address review comments of #409 2011-08-31 13:42:10 +02:00
Vivien Nicolas
8145c00215 Fix another regression on pdf.pdf#5 2011-08-31 02:18:13 +02:00
Vivien Nicolas
ec1a8e98cf Fix PDF reference regression 2011-08-31 01:48:56 +02:00
Vivien Nicolas
3fd2f42a50 Lie to the sanitizer about the real nature of Type1C font 2011-08-31 01:23:55 +02:00
Vivien Nicolas
76f6398e47 Fix some strict warnings 2011-08-31 00:37:39 +02:00
Vivien Nicolas
f6e14010f1 Fix regression mapping from gid to glyph from the last commit 2011-08-31 00:12:00 +02:00
Vivien Nicolas
395a46c85e Support Type1C built-in encoding - part1 2011-08-30 19:52:24 +02:00
Vivien Nicolas
55d04c0cd9 Adjust precision to have correct widths for arial tests documents 2011-08-30 04:00:03 +02:00
Vivien Nicolas
341de1ff42 Clean up encoding parsing 2011-08-30 02:34:35 +02:00
Vivien Nicolas
6a7b37ab68 Fix a little typo 2011-08-30 01:03:39 +02:00
Vivien Nicolas
e58b076eab Fix a little typo 2011-08-30 00:59:37 +02:00
Vivien Nicolas
b4f3ceef85 Merge remote branch 'upstream/master' 2011-08-30 00:56:20 +02:00
Vivien Nicolas
95ccb38283 Clean up a bit the encoding/charset/glyphs dance 2011-08-30 00:56:02 +02:00
notmasteryet
39894f98b2 Fixing iframe's parent for postMessage in the font loading hack 2011-08-27 13:14:51 -05:00
Kalervo Kujala
edd92c9db2 Fix gjslint errors. 2011-08-26 23:55:14 +03:00
Vivien Nicolas
57b3d28f8f Merge remote branch 'upstream/master' 2011-08-26 17:19:53 +02:00
Vivien Nicolas
4a320705c0 Fix wrong dict data offset when there is many charstrings 2011-08-26 17:18:18 +02:00
Vivien Nicolas
1cf4fc8782 If the glyph is not indexed, ignore it completely in getOrderedCharstrings 2011-08-26 15:30:26 +02:00
Vivien Nicolas
9ce69f94a6 Fix lying sfnt header for some CFF font that pretend to be TrueType and fix unknown unicode glyphs when building from Type1 2011-08-26 14:21:25 +02:00
Kalervo Kujala
092235a56f Fix lint errors. 2011-08-25 20:20:19 +03:00
Vivien Nicolas
93437352d0 Move splice() after the width assigment 2011-08-25 02:56:03 +02:00
Vivien Nicolas
3f16be334e Add built-in encoding for Type1 if there is no encoding built yet (fix some missing chars in pypy.pdf page 7) 2011-08-25 02:29:22 +02:00
Vivien Nicolas
6460ffcd25 Remove div arguments once used for lsb 2011-08-24 17:26:14 +02:00
Vivien Nicolas
f48ab3cfd1 Support lsb div format 2011-08-24 17:18:56 +02:00
notmasteryet
d58dac0fd3 Encoding for standard fonts; symbols encoding 2011-08-22 22:50:17 -05:00
Kalervo Kujala
8ffbf683b8 Add more debug data to error-logs.
Fix also a few gjslint errors.
2011-08-22 22:30:22 +03:00
Adil Allawi
eefaa0153f Offset glyphs to the unicode private use area 2011-08-20 09:31:19 +01:00
Chris Jones
5d071fffcd Merge pull request #339 from ironymark/master
Fix Type 2 CID Font Encoding
2011-08-19 20:29:32 -07:00
Adil Allawi
98d628ee3e make cmap glyph offset a symbolic constant 2011-08-19 21:51:57 +01:00
sbarman
2805122023 cleanup 2011-08-19 08:19:32 -07:00
Adil Allawi
5a528944f0 Change the way Type 2 CID fonts are encoded. Move the cmap glyphs above the first 255 unicode values so that fillText does not change them and create an encoding to map characters to the glyphs. 2011-08-19 14:05:07 +01:00
sbarman
5f233d7cde cleanup 2011-08-18 22:05:08 -07:00
sbarman
08521e5018 Merge branch 'master' into openmag 2011-08-18 21:57:08 -07:00
sbarman
085f8dc1c9 cleanup 2011-08-18 20:40:16 -07:00
sbarman
b1aab2f730 Fixed fonts to use strings instead of Uint8Arrays 2011-08-18 20:17:54 -07:00
sbarman
32bde23157 cleanup 2011-08-18 13:53:26 -07:00
sbarman
c9f9b8b193 working font 2011-08-18 13:53:26 -07:00
sbarman
8acc31ec83 Still testing type1 charstring conversion 2011-08-18 13:53:26 -07:00
sbarman
04b14f7b8a fixed reading from sream 2011-08-18 13:53:26 -07:00
sbarman
7d5dcb5d43 added ability to write data to file 2011-08-18 13:53:25 -07:00
sbarman
5b359f1c1e still mucking with subroutines 2011-08-18 13:53:25 -07:00
sbarman
bf9092b660 working on subroutines 2011-08-18 13:53:25 -07:00
sbarman
60127b0830 increased size of loaded font 2011-08-18 11:28:37 -07:00
sbarman
a24ec410ee cleanup 2011-08-17 16:04:14 -07:00
sbarman
8ff8a92244 Revert "Merge branch 'writeToFile' into hmm"
This reverts commit 9b91fca347, reversing
changes made to c592d5ed3b.
2011-08-17 16:00:54 -07:00
sbarman
bd567fc322 working font 2011-08-17 15:55:09 -07:00
sbarman
9f615036d9 Still testing type1 charstring conversion 2011-08-16 16:14:29 -07:00
sbarman
9b91fca347 Merge branch 'writeToFile' into hmm 2011-08-16 14:49:17 -07:00
sbarman
c592d5ed3b still mucking with subroutines 2011-08-16 14:49:12 -07:00
sbarman
23d37f98db working on subroutines 2011-08-16 10:25:02 -07:00
notmasteryet
b141a66309 Fixing bad comment 2011-08-14 12:11:23 -05:00
notmasteryet
aad77fcc55 BaseFont and misc fonts fixes 2011-08-14 08:40:22 -05:00
Kalervo Kujala
b2037841e5 Correct the coding style according to gjslint in font.js
Also refactor the lines that are over 80 characters long.
2011-08-11 21:41:03 +03:00
Kalervo Kujala
f656e841ac Correct the coding style according to gjslint.
And remove stray tabs.
2011-08-08 23:13:32 +03:00
notmasteryet
9bcf2d8b7c Fixing the maxAdvanceWidth and the amount of the missing sidebearing 2011-07-31 22:56:41 -05:00
Vivien Nicolas
aa41a75f6e Support standards fonts 2011-07-25 16:42:46 +02:00
sbarman
f177398777 Fixed the mapping from charstring to glyphs 2011-07-22 09:57:26 -07:00
sbarman
d502866111 cleanup code 2011-07-22 09:21:38 -07:00
sbarman
c4d81646dc fixed reading from sream 2011-07-21 15:18:00 -07:00
sbarman
5b43c25d56 removed unnecessary call to parseEncoding 2011-07-21 14:02:31 -07:00
sbarman
c67037e268 added ability to write data to file 2011-07-21 11:51:39 -07:00
sbarman
870027136a Merge branch 'master' into font 2011-07-21 11:29:15 -07:00
Vivien Nicolas
2197235470 Merge to upstream 2011-07-21 18:29:32 +02:00
sbarman
bed8052cab Merge branch 'master' into font 2011-07-21 09:09:25 -07:00
Vivien Nicolas
1d59de6c12 Fix a > 32000 conversion error in type1 to type2 charstring 2011-07-21 11:01:38 +02:00
sbarman
daf4979e2f cleanup 2011-07-20 17:10:04 -07:00
sbarman
8d09c0d7a4 removed Fonts class 2011-07-20 16:42:51 -07:00
sbarman
2f30dd5174 moved width setting code 2011-07-20 15:00:16 -07:00
sbarman
8824ff9539 removed code to parse type2 ccharstrings 2011-07-20 14:43:44 -07:00
sbarman
c7aec8ac8a used width info in fontDict 2011-07-20 12:57:47 -07:00
sbarman
8763002c44 extracted filetype in pdf.js instead of fonts.js 2011-07-20 11:25:00 -07:00
Vivien Nicolas
6311977fee Merge with upstream 2011-07-20 15:18:44 +02:00
Vivien Nicolas
3cc9912acd Add a simpler path for cmap format 0 to cmap format 4 2011-07-20 14:29:07 +02:00
sbarman
b8df2eb68b cleanup 2011-07-19 11:33:54 -07:00
sbarman
173c68ef86 cleanup 2011-07-19 11:30:42 -07:00
Vivien Nicolas
776c10d4e6 Fix a regression on the application of the textMatrix extracted from a CFF font 2011-07-19 14:29:05 +02:00
Vivien Nicolas
913504a937 Remover leftover 2011-07-19 14:23:57 +02:00
Vivien Nicolas
c6c72291d9 Do not rasterize below 14px 2011-07-19 14:22:51 +02:00
sbarman
5f133a8c07 fixed missing entries in charstring data 2011-07-18 21:01:05 -07:00
sbarman
226f3fa3ee add correct char width 2011-07-18 15:49:32 -07:00
sbarman
ed42423e3b working version, spacing not working 2011-07-18 12:22:04 -07:00
sbarman
a7d6f857da working on cff fonts 2011-07-18 08:24:57 -07:00
Vivien Nicolas
42653edf9a Add support for beginfbchar 2011-07-15 19:14:07 +02:00
sbarman
0090b2e696 added support for index, dictionary in cff 2011-07-15 08:58:09 -07:00
Vivien Nicolas
aea63a7051 Fix missing sidebearings from the hmtx table (see canvas.pdf) 2011-07-15 16:22:45 +02:00
Vivien Nicolas
e2d808a60f Switch length versus offset mistake in readTableEntry 2011-07-15 16:02:32 +02:00
Vivien Nicolas
b8fc365fff Fix the ranges duplication cleanup features 2011-07-15 15:41:30 +02:00
Vivien Nicolas
10e9694135 Support font with characters below 0x20 declared in format 1 cmap and be more general about the TrueType rewritting cases 2011-07-15 14:59:34 +02:00
Adil Allawi
06986bb15f nits, picked 2011-07-13 17:46:48 +01:00
Adil Allawi
0906cc8c94 Bump up the max font file size. Composite fonts can be larger than simple fonts. Once we support Japanese we will need to reconsider how this is done as a large Japanese font may be up to 30Mb in size. 2011-07-13 09:38:39 +01:00
Adil Allawi
36763e8e82 Fully support truetype composite fonts, clean up 2011-07-13 09:31:34 +01:00
Adil Allawi
6b6e97dff6 cleanup, added new flag to the font properties called compositeFont. If true, the encoding and ShowText strings must be multi-byte 2011-07-12 03:58:09 +01:00
Adil Allawi
7b8542c6a7 Second pass CIDFont support - make Arial Unicode in OpenOffice PDF
- supports PDF fonts with CIDtoGIDMap and no cmap
2011-07-11 17:41:55 +01:00
notmasteryet
9b69997046 Clearing font checksum adjustment field 2011-07-10 16:47:09 -05:00
Andreas Gal
6ef9e77b8a Merge pull request #232 from notmasteryet/cff-issues2
CFF issues: cmap length, PS-name removal, Private Dictionary
2011-07-10 02:01:08 -07:00
Chris Jones
7f9c9f5ba2 work around #233 so that tests stop failing for the moment 2011-07-09 22:12:42 -07:00
Chris Jones
671dd3b0e8 back out bad font measurement changes 2011-07-09 21:43:28 -07:00
notmasteryet
75758ffec5 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into cff-issues2 2011-07-09 23:30:40 -05:00