275 Commits

Author SHA1 Message Date
Devon Govett
38e5b73e58 Move TTF table tags to prototype 2014-09-15 11:35:42 -04:00
Devon Govett
2eb9fa3aa2 Merge branch 'master' of github.com:yelouafi/pdfkit into yelouafi-master 2014-09-15 11:32:13 -04:00
yelouafi
9f4c6345c5 Moved @tag definition to the derived Table constructors 2014-09-13 17:30:42 +00:00
Devon Govett
4f2f0e697d Merge pull request #309 from ef4/infinite-loop
Infinite loop when first word is longer than line
2014-09-12 18:49:38 -04:00
yelouafi
c7c20ef6b7 removed @constructor.name line, corrected @tag params 2014-09-12 21:47:46 +00:00
Edward Faulkner
838afe15a0 Infinite loop when first word is longer than line 2014-09-12 16:25:12 -04:00
Devon Govett
95b149e16d Minor style changes 2014-09-12 15:09:49 -04:00
Devon Govett
3842f6b7da Merge pull request #302 from ef4/buffered-pages
Optional page buffering
2014-09-12 15:06:19 -04:00
Edward Faulkner
1c48bad333 bufferedPages support 2014-09-12 14:59:45 -04:00
yelouafi
7f8714a40f TTFFont.parse should call *Table constructors with explicit @tag param 2014-09-12 18:34:44 +00:00
Devon Govett
8383dee3cb Merge pull request #303 from ef4/blank-ascender
Prevent missing ascender from breaking layout
2014-09-11 21:05:09 -04:00
Devon Govett
33920c3f2a Merge pull request #301 from ef4/center-spacing
Fix center-aligned character spacing
2014-09-11 19:51:10 -04:00
Devon Govett
1d4c208d47 Merge pull request #300 from ef4/continued-indent
Fix indent with continued
2014-09-11 19:47:21 -04:00
Edward Faulkner
3acfa5833d prevent missing ascender from breaking layout 2014-09-11 19:31:21 -04:00
Edward Faulkner
3e19194802 Fix center-aligned character spacing 2014-09-11 16:09:54 -04:00
Edward Faulkner
5b433d808a fix indent with continued 2014-09-11 13:34:51 -04:00
Devon Govett
ea22822d6c v0.6.5 v0.6.5 2014-08-29 11:49:36 -04:00
Devon Govett
09ed15b2e4 Fix unicode annotations 2014-08-29 11:49:20 -04:00
Devon Govett
932cd0c70c v0.6.4 v0.6.4 2014-08-27 19:22:36 -04:00
Devon Govett
71669f4e5e Merge pull request #281 from sbruchmann/feature/update-copyright-year
Update copyright year to 2014
2014-08-22 18:46:28 -04:00
Steffen Bruchmann
7642034a1f Update copyright year to 2014 2014-08-23 00:30:55 +02:00
Devon Govett
3418299ac7 Merge pull request #277 from mishoo/fix-reading-uint32
Fix reading UInt32
2014-08-16 09:52:56 -04:00
Devon Govett
2792ca2569 Merge pull request #276 from mishoo/fix-reading-cmap
Fix reading `cmap` table
2014-08-16 09:12:07 -04:00
Mihai Bazon
b60fe860e0 Fix reading UInt32
In JS, 0x80 << 24 yields a negative result.  Also, 0x80000000|0 < 0.
Bitwise ops should be avoided for very long unsigned ints.
2014-08-16 11:57:54 +03:00
Mihai Bazon
e61366b37f Fix reading cmap table
The data offset must be saved before parsing one entry and restored
thereafter.  Otherwise only the first table is parsed properly, and garbage
is returned for the rest.  Fails on i.e. georgiai.ttf.

When reading the glyphIds, divide count by 2 (we read 16-bit words).
2014-08-16 11:50:52 +03:00
Devon Govett
26a0753d6c v0.6.3 v0.6.3 2014-07-29 09:45:08 -07:00
Devon Govett
1241997715 Refactor font loading code and add support for ArrayBuffers 2014-07-29 09:42:48 -07:00
Devon Govett
314e9d28ae Merge pull request #257 from pretzelfisch/master
added support for add font as Uint8Array
2014-07-29 09:36:57 -07:00
Aaron Fischer
c2c61bb2e2 added support for add font as Uint8Array 2014-07-29 09:15:39 -07:00
Devon Govett
e58a7ce809 Formatting 2014-07-14 20:48:00 -07:00
Devon Govett
afbb700fb1 Merge pull request #250 from jkol/master
Added "valign" option to image "fit" scaling
2014-07-14 20:46:43 -07:00
jkol
64df00fa13 Added "valign" option to image "fit" scaling
valign can be set to "center" or "bottom" now and when "valign" === "center" is combined with "align" === "center" any aspect ratio image can be centered into a bounding area.
2014-07-14 18:23:11 -05:00
Devon Govett
6b0846c68f Fix docs on piping to an HTTP response 2014-05-21 09:12:48 -07:00
Devon Govett
5cb45d6c99 v0.6.2 v0.6.2 2014-05-10 10:21:51 -07:00
Devon Govett
7883279a74 Merge pull request #238 from ryanwersal/iss224-fix-char-spacing
Remove text state handling as it doesn't surive graphic stack saves/restores
2014-05-10 10:14:39 -07:00
Ryan Wersal
c77add8f56 Remove text state handling as it doesn't surive graphic stack saves/restores
Saving and/or restoring the graphics state causes each text object to have to
reinitialize that text state. As a result, the mode/characterSpacing commands
would not get re-added until their value(s) had changed.
2014-05-10 01:11:06 -05:00
Devon Govett
0e221f9d03 Merge pull request #237 from ryanwersal/improve-underline-sizing
Improve sizing of text underline
2014-05-09 19:20:41 -07:00
Ryan Wersal
aadc589a62 Improve sizing of text underline 2014-05-09 00:05:17 -05:00
Devon Govett
6d5b06df17 Merge pull request #235 from ryanwersal/add-base64-image
Add ability to add base64 URI images
2014-05-06 10:03:58 -07:00
Ryan Wersal
acc0a2e4ba Use a regex to capture the base64 encoded string 2014-05-06 00:43:02 -05:00
Devon Govett
c753a45ebb Merge pull request #234 from ryanwersal/fix-dependencies
Fix dependencies for browser-demo
2014-05-05 20:53:47 -07:00
Ryan Wersal
1020ac7b73 Mark blob-stream as a dev dependency 2014-05-05 22:49:37 -05:00
Ryan Wersal
2b34173dec Add ability to add base64 URI images 2014-05-05 22:47:33 -05:00
Ryan Wersal
15823ec547 Fix dependencies for browser-demo
Restrict brfs' version to fix unexpected identifier errors. See #230.
Add blob-stream as a dependency.
2014-05-05 22:43:48 -05:00
Devon Govett
16e8b0316f Rebuild guide for v0.6.1 v0.6.1 2014-04-14 10:00:16 -07:00
Devon Govett
5a06eb79c6 v0.6.1 2014-04-14 09:58:45 -07:00
Devon Govett
a6f6f4df8a Don't use trimRight since it isn't supported in IE 2014-04-14 09:58:26 -07:00
Devon Govett
39ac0a69fe Another link to demo 2014-04-14 00:04:07 -07:00
Devon Govett
655d753bfb Add Google analytics code to browser demo 2014-04-13 23:08:31 -07:00
Devon Govett
968f2c73de Merge pull request #223 from devongovett/browser
Support using PDFKit in the Browser, thanks to Browserify!
v0.6.0
2014-04-13 22:54:11 -07:00