Commit Graph

360 Commits

Author SHA1 Message Date
Artur Adib
1a79f3fb43 Changed exec flags of non-exec files (chmod -x) 2011-09-15 09:41:52 -07:00
Artur Adib
de253dcbe3 Check for stylesheet presence (font.js)
If doc doesn't have a stylesheet, create one.
2011-09-14 16:26:36 -07:00
notmasteryet
40e0cb40a6 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs
Conflicts:
	fonts.js
2011-09-12 18:14:18 -05:00
Kalervo Kujala
b5412c13d8 Fix gjslint warnings. 2011-09-12 20:42:55 +03:00
Kalervo Kujala
8e5a8fb49f Fix Mode comment lines. 2011-09-12 20:37:33 +03:00
Vivien Nicolas
538d26521d Basic support for the embedded font file of CIDFontType0 2011-09-12 18:32:46 +02:00
Kalervo Kujala
0dc0dd4c97 fix jslint warnings in fonts.js 2011-09-11 23:04:17 +03:00
Vivien Nicolas
95ca8ede85 Add support for Type1C advanced charsets 2011-09-11 17:38:02 +02:00
Vivien Nicolas
ae0f5e6274 Fix a regression caused by the last patch to resolve the 'dotsection' issue 2011-09-11 16:14:28 +02:00
Vivien Nicolas
bcd8619414 Prevent the deprecated 'dotsection' command in Type1C to hit the sanitizer 2011-09-11 15:23:35 +02:00
notmasteryet
faf8b8ac0b Refactoring charsToUnicode into charsToGlyphs 2011-09-10 20:21:20 -05:00
Vivien Nicolas
7fa63e68dd Merge with upstream 2011-09-10 20:12:57 +02:00
Vivien Nicolas
ac163da4c8 Fix a small mistake for cmap format 0 2011-09-10 20:02:42 +02:00
Vivien Nicolas
cf93f23178 Disable hinting until it works 2011-09-10 20:00:27 +02:00
Vivien Nicolas
13bf137220 Draw glyphs one by one to position them correctly and remove all the scaling hack 2011-09-10 19:40:25 +02:00
Vivien Nicolas
26a6b9763b Be more generic for serif/sans-serif rule 2011-09-10 16:49:40 +02:00
Vivien Nicolas
6a518d53fe Be more generic for bold/italic rules 2011-09-10 16:47:58 +02:00
Vivien Nicolas
574bc87741 Fix a small Type1 encoding parsing error that cause the first Type1 font of the Type1 spec to be rejected 2011-09-10 14:50:46 +02:00
Vivien Nicolas
6329f89982 Simplify the cmap format 6 conversion - fix #449 2011-09-10 13:41:07 +02:00
Vivien Nicolas
5cb2a07b3d Fix an issue with the vhea/vmtx tables 2011-09-09 16:37:56 +02:00
Vivien Nicolas
841fabd4e9 Fix wrong spacing for format 6 2011-09-09 14:38:09 +02:00
Vivien Nicolas
a89e7331f4 Add a comment for using unit-per-em in the measureText() method 2011-09-09 14:26:24 +02:00
Vivien Nicolas
0ea9411f69 Prevent missing charcode to block the rendering 2011-09-09 13:32:54 +02:00
Vivien Nicolas
d4fb9c786c Use the built-in widths to calculate glyphs metrics 2011-09-09 01:35:37 +02:00
Kalervo Kujala
d9e01b1d7a Fix gjslint warnings. 2011-09-08 22:37:35 +03:00
Vivien Nicolas
567be29720 Add more glue between glyph mapping and code mapping 2011-09-08 03:16:33 +02:00
Vivien Nicolas
4d2b8ea1c8 Refactor translateFont() to be more readable - part2 2011-09-07 19:34:53 +02:00
Vivien Nicolas
8c21f53c98 Refactor translateFont() to be more readable 2011-09-07 18:00:38 +02:00
Vivien Nicolas
12ef21cbbe Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands 2011-09-07 15:20:23 +02:00
notmasteryet
d72178d6dd Merge pull request #447 from vingtetun/serif
Add a list of common serif fonts to not always fallback on sans-serif
2011-09-06 17:33:18 -07:00
notmasteryet
f8866b37a4 Merge pull request #448 from kkujala/master
Use radix in parseInt function calls.
2011-09-06 16:33:40 -07:00
Kalervo Kujala
0b19fd5251 Use radix in parseInt function calls. 2011-09-07 01:39:48 +03:00
Vivien Nicolas
ea42fd69e4 Add a list of common serif fonts to not always fallback on sans-serif if the font file is missing 2011-09-07 00:29:08 +02:00
Vivien Nicolas
0e062668e9 Fix review comments from #424 2011-09-07 00:19:58 +02:00
Vivien Nicolas
b1a85c6229 Fix cmap encoding records to pass the sanitizer in the case of a duplicate platform: 1, encoding: 0 2011-09-06 15:12:33 +02:00
Vivien Nicolas
f7ee90cc8c Fix review comments for #436 2011-09-06 02:28:06 +02:00
Vivien Nicolas
83f930abd6 Add '^M' support in the ASCII85Decode filter and fix the fonts code to load the Type1 spec 2011-09-05 22:09:40 +02:00
Vivien Nicolas
3c77972b8e Length[1-2] can be a reference 2011-09-05 21:01:39 +02:00
Vivien Nicolas
cea0408067 Do not add kCmapGlyphOffset to Type1C mapping unless it is necessary 2011-09-05 18:04:41 +02:00
Vivien Nicolas
9701f934ed Move all format 0 characters to the private area 2011-09-05 17:30:01 +02:00
Vivien Nicolas
5970020f3b Fix wrong mapping for issue #434 2011-09-05 15:36:38 +02:00
Vivien Nicolas
b1a5ab6d0f Fix regression on i9.pdf 2011-09-05 14:35:03 +02:00
Vivien Nicolas
e1f7edfae8 Add a comment about supporting hint replacement 2011-09-02 15:26:16 +02:00
Vivien Nicolas
5f99e398f4 Be more flexible about Subrs parsing 2011-09-02 14:21:48 +02:00
Vivien Nicolas
18661debdc Use lenIV to read the subrs section 2011-09-02 13:37:39 +02:00
Vivien Nicolas
e26b5b3b00 Show Type1 glyphs below 0x20, fix a bug in readNumberArray, read lenIV 2011-09-01 19:50:04 +02:00
Vivien Nicolas
00d2366d1d Simulate Arial Black and Arial Narrow 2011-09-01 04:06:33 +02:00
Vivien Nicolas
81e1485e14 Address review comment for pull #419 2011-09-01 01:16:40 +02:00
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