19 Commits

Author SHA1 Message Date
Devon Govett
22499ee4bd Include a static list of standard fonts so they can be included by browserify/brfs 2014-04-12 20:48:29 -07:00
Devon Govett
98489d64a8 Store the font name 2014-04-12 20:45:42 -07:00
Devon Govett
4b8b031188 Don't embed fonts until they are actually used 2014-04-12 20:45:15 -07:00
Devon Govett
bb9b77cb82 Allow loading fonts from Buffers in addition to filenames 2014-04-12 20:44:19 -07:00
Devon Govett
f463512b2f Don't embed fonts more than once 2014-04-09 23:41:40 -07:00
Devon Govett
f8a40dba76 Make PDFDocument a node stream 2014-03-23 17:11:48 -07:00
Devon Govett
1305a9592a Switch to 2 space indentation 2014-03-23 12:25:09 -07:00
Devon Govett
25c0348755 Fix character width calculations (#185, #169)
Follows TTF hmtx rules for missing entries, and encodes WinAnsi first for builtin fonts.
2014-02-16 19:46:35 -08:00
Devon Govett
5b1f030329 Move WinAnsi encoding to AFMFont class 2014-02-16 19:43:25 -08:00
Devon Govett
a983bf4720 Make encodeWinAnsi and associated map private 2014-01-18 13:21:30 -08:00
Helmuth Breitenfellner
0d56d85a5d incorporated comments from @devongovett 2014-01-18 22:10:57 +01:00
Helmuth Breitenfellner
858e3864ab Add WinAnsiEncoding for standard fonts
When using a PDF standard font, the encoding is set to WinAnsiEncoding.
In addition, a encoding function is used to translate from UTF-8 to
WinAnsiEncoding.
2014-01-18 21:21:56 +01:00
Devon Govett
b9da8ebedd Switch to using Node's built in zlib bindings. Fixes #48. 2012-04-03 19:28:59 -07:00
Devon Govett
fb7d8ceb7f Fix zlib issue with node 0.6. Closes #42. 2011-10-22 14:12:02 -07:00
Devon Govett
788d4b8027 ToUnicode cmap support. Fixes copy and paste. 2011-07-20 13:54:39 -04:00
Devon Govett
a6ca7c7896 Unicode font support! 2011-07-20 01:54:15 -04:00
Devon Govett
9d90e25664 Font subsetting support. Only includes characters in embedded fonts that are actually used in the document. Please report bugs if you find them! 2011-07-17 01:13:44 -04:00
Devon Govett
8817481411 More fixes 2011-07-11 10:52:49 -04:00
Devon Govett
9215fc1b02 Initial commit 2011-07-09 22:57:00 -04:00