Commit Graph

1878 Commits

Author SHA1 Message Date
Kalervo Kujala
07662cf035 fix jslint warnings
jslint revealed unused and misspelled variable names. Also some code was
refactored to be more simple.
2011-09-11 22:54:00 +03:00
notmasteryet
beea86db31 Merge pull request #464 from notmasteryet/4e21e417cdf56a1ba43475510284b3399c4f7b52
Fix test_slave.html for #458
2011-09-10 17:35:01 -07:00
notmasteryet
e523e4dc56 Merge pull request #458 from vingtetun/metrics
Fix for issue #441, #412, #379
2011-09-10 17:27:20 -07:00
Andreas Gal
501a224128 Merge pull request #462 from notmasteryet/bug674619
JPEG marker for YCCK images (in support of bug 674619)
2011-09-10 12:37:03 -07:00
Andreas Gal
32393db2fc Merge pull request #461 from kkujala/master
Refactor the repeat logic in readBlock function.
2011-09-10 11:56:26 -07:00
notmasteryet
ee21d4113f JPEG marker for YCCK images (in support of bug 674619) 2011-09-10 13:45:55 -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
Kalervo Kujala
d54e425a96 Refactor the repeat logic in readBlock function.
In the function repeat the variabe i is not defined in the scope of the
function. This function was from moved by
92fa629d10 from its original place which had
the i as defined. This fix avoids the scope dependency.
2011-09-10 20:06:03 +03: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
001ca071f0 Fix a small bug about how 'W' widths array is parsed 2011-09-10 14:27:04 +02:00
Vivien Nicolas
6329f89982 Simplify the cmap format 6 conversion - fix #449 2011-09-10 13:41:07 +02:00
notmasteryet
6245073ad9 Merge pull request #457 from kkujala/master
Fix gjslint warnings.
2011-09-09 15:46:22 -07:00
notmasteryet
4e21e417cd Fix test_slave.html ref to metrics.js 2011-09-09 16:46:46 -05:00
Kalervo Kujala
946c4e2a88 Initialize inputBuf to zero. 2011-09-09 20:12:38 +03: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
Vivien Nicolas
f759e56a02 Merge remote branch 'upstream/master' into HEAD 2011-09-09 01:34:47 +02:00
Kalervo Kujala
63d3f06265 Fix lastRow bug.
It was introduced by 99ffc9991e.
2011-09-09 00:52:11 +03:00
Kalervo Kujala
b8263a5c1f Initialize inputBuf.
Fix also another jslint error.
2011-09-08 23:10:49 +03:00
Kalervo Kujala
d9e01b1d7a Fix gjslint warnings. 2011-09-08 22:37:35 +03:00
Andreas Gal
d687d20c69 Merge pull request #456 from notmasteryet/pdfstring
Add PDFString conversion function
2011-09-07 18:32:26 -07:00
Vivien Nicolas
a7ef696fea Add an empty 'widths' to the properties object for base font 2011-09-08 03:21:27 +02:00
Vivien Nicolas
f014867bf8 Merge remote branch 'upstream/master' into refactor 2011-09-08 03:16:35 +02:00
Vivien Nicolas
567be29720 Add more glue between glyph mapping and code mapping 2011-09-08 03:16:33 +02:00
notmasteryet
92a7468e9a Add PDFString conversion 2011-09-07 20:16:32 -05:00
notmasteryet
768554afd8 Merge pull request #454 from vingtetun/refactor
Refactor the translateFont() method to be more readable and simpler
2011-09-07 17:30:56 -07:00
vingtetun
4472d899ff Merge pull request #455 from kkujala/master
Fix array initializations.
2011-09-07 16:30:05 -07:00
Kalervo Kujala
a9e0ddc22f Use typed arrays instead of normal arrays in FlateStream.
Also fix a couple of lint warnings.
2011-09-07 23:07:29 +03:00
Kalervo Kujala
fb5807721e Fix array initializations.
And refactor one loop.
2011-09-07 22:11:30 +03:00
Vivien Nicolas
92081af896 Revert a change from the narrow hack 2011-09-07 20:18:02 +02:00
Vivien Nicolas
9c8efbee62 Merge remote branch 'upstream/master' into refactor 2011-09-07 19:57:25 +02:00
Vivien Nicolas
c5b83eaf73 Refactor translateFont() to be more readable - part3 2011-09-07 19:56:45 +02:00
Vivien Nicolas
4d2b8ea1c8 Refactor translateFont() to be more readable - part2 2011-09-07 19:34:53 +02:00
Andreas Gal
909284df7b Merge pull request #453 from vingtetun/master
Fix for #451
2011-09-07 10:24:21 -07:00
Andreas Gal
71ad19365c Merge pull request #446 from vingtetun/extension
Initial import of the Firefox extension (issue #424)
2011-09-07 10:17:21 -07: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
notmasteryet
122e4c1e67 Merge pull request #443 from vingtetun/master
Partial fix for issue #440
2011-09-06 16:14:48 -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