Commit Graph

331 Commits

Author SHA1 Message Date
Vivien Nicolas
41ebb55d75 Fix tests failures 2011-09-22 01:22:34 +02:00
Vivien Nicolas
f3c20150bd Fix lint errors and add metrics.js and charsets.js to the default set of pdf files in the Makefile 2011-09-20 04:26:37 +02:00
Vivien Nicolas
06a3b49e49 Merge with upstream 2011-09-20 03:42:34 +02:00
Andreas Gal
7df39bb065 Merge pull request #492 from notmasteryet/tree-19
Fixing the CID to GID mapping for cid fonts
2011-09-19 16:12:10 -07:00
vingtetun
7a81e79138 Merge pull request #466 from notmasteryet/charstoglyphs
Refactoring charsToUnicode into charsToGlyphs
2011-09-19 07:34:46 -07:00
notmasteryet
ebb9d7dd2c Fix for 16-bit 'loca' table 2011-09-18 22:44:25 -05:00
notmasteryet
f401a64eb2 Sanitize 'loca' font table: some fonts have first glyph with length 10 2011-09-18 21:25:05 -05:00
notmasteryet
1c5b1cbc34 Fixing the CID to GID mapping for cid fonts (regression of arial_unicode_XX_cidfont.pdf) 2011-09-18 12:08:52 -05:00
notmasteryet
e59a36a015 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs 2011-09-18 09:11:53 -05:00
notmasteryet
391ec1f99a Moving defaultWidth into the charsToGlyphs function 2011-09-18 09:11:31 -05:00
Chris Jones
850cc6ce81 Merge pull request #486 from notmasteryet/tree-16
Fixing lint long lines warnings
2011-09-17 19:41:04 -07:00
notmasteryet
1f047495b1 Fixing large cmap-s; reduce changes in the indent encoding 2011-09-17 17:13:22 -05:00
notmasteryet
0b1b8da982 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs
Conflicts:
	test/test_manifest.json
2011-09-17 11:23:34 -05:00
notmasteryet
559bd070bf Fixing lint long lines warnings 2011-09-16 19:53:52 -05:00
Adil Allawi
530d78e0f8 Added myself to the license (yay!)
Tweaked according to comments in pull request #482
2011-09-16 23:55:06 +01:00
Adil Allawi
870de2f7f3 Add opentype ascender, descender and units-per-em to font properties
Prefer font ascender, descender when creating OS/2 table
scale PDF ascender and descender in OS/2 table by font units per em if it exists
Fix the truetype font header to prevent Windows rejecting a Mac truetype font
2011-09-16 17:46:15 +01:00
Adil Allawi
cac74d7cb3 Fix OS/2 table to match font yMax and yMin from head table 2011-09-16 17:46:15 +01:00
notmasteryet
582b760a65 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs 2011-09-15 19:50:55 -05:00
notmasteryet
a0ef97fb60 Transfer defaultWidth for files without the file 2011-09-15 19:32:36 -05:00
notmasteryet
10a2fa66c2 Fixing defaultWidth; variables names 2011-09-15 19:26:32 -05:00
Vivien Nicolas
a217e7a121 Merge remote branch 'upstream/master' into metrics 2011-09-15 20:07:38 +02:00
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