Commit Graph

307 Commits

Author SHA1 Message Date
Julian Viereck
dd9aea21e9 Trying to implement progressive font rendering. Works on FF, but Chrome doesn't catchup the fonts 2011-09-15 13:16:03 -07:00
Julian Viereck
c370b8a428 Ensure things work for default fonts like Arial 2011-09-15 09:05:04 -07:00
Julian Viereck
5a1488df9f Expose FontMeasure only if running on the main thread as the worker doesnt have a document to attach the canvas to 2011-09-15 08:20:03 -07:00
Julian Viereck
2c51c6fb9e Set loadedName in Partial Eval 2011-09-15 08:13:13 -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
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
Kalervo Kujala
0dc0dd4c97 fix jslint warnings in fonts.js 2011-09-11 23:04:17 +03: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