Commit Graph

203 Commits

Author SHA1 Message Date
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
5b43c25d56 removed unnecessary call to parseEncoding 2011-07-21 14:02:31 -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
notmasteryet
37315af515 fix 'private' keyword 2011-07-09 23:24:24 -05:00
notmasteryet
67f133dea7 CFF/OTF font and sanitizer friendly fixes 2011-07-09 23:12:11 -05:00
Chris Jones
fb9b8b6417 Merge pull request #226 from andreasgal/staging
simplify font measurement code, bug is now fixed in nightlies, no need to
2011-07-09 16:51:04 -07:00
Andreas Gal
adb619941c simplify font measurement code, bug is now fixed in nightlies, no need to hack around it 2011-07-08 19:28:24 -07:00
Andreas Gal
f2a4756c77 backout font measurement change, it is breaking tests 2011-07-08 18:51:20 -07:00
Andreas Gal
5bf4fcba9b properly fix font loading, shaon's code didn't work after all 2011-07-08 18:45:38 -07:00
Andreas Gal
3fb2b026bf Merge pull request #224 from sbarman/master
fix to bug with detected font loading
2011-07-08 18:39:32 -07:00
sbarman
c06c14a72a fix to font loading code 2011-07-08 18:24:22 -07:00
Andreas Gal
4a7fe7cb5d move text measurement into Font 2011-07-08 17:57:03 -07:00