33 Commits

Author SHA1 Message Date
Devon Govett
154801ece7 fontkit removed widthOfString method 2016-08-26 11:31:12 -04:00
Devon Govett
fb0b38934f Match fontkit output for standard fonts 2015-07-26 12:30:14 -07:00
Devon Govett
926ed20285 Fix afm glyph width when not defined 2015-07-26 12:29:52 -07:00
Devon Govett
ed542e5192 Update for latest fontkit 2015-07-26 12:29:32 -07:00
Devon Govett
0cca20a6a4 Fix misspelling 2015-07-26 12:29:19 -07:00
Devon Govett
6b2bea9835 Merge branch 'master' of github.com:devongovett/pdfkit into fontkit
Conflicts:
	lib/font/table.coffee
	lib/font/tables/cmap.coffee
	lib/font/tables/glyf.coffee
	lib/font/tables/head.coffee
	lib/font/tables/hhea.coffee
	lib/font/tables/hmtx.coffee
	lib/font/tables/loca.coffee
	lib/font/tables/maxp.coffee
	lib/font/tables/name.coffee
	lib/font/tables/os2.coffee
	lib/font/tables/post.coffee
2014-11-27 20:51:58 -08:00
Devon Govett
7bab1db1a5 Support passing opentype features to text methods 2014-11-27 20:48:44 -08:00
Devon Govett
f7cc793693 Update fontkit API calls 2014-11-27 20:44:25 -08:00
Devon Govett
38e5b73e58 Move TTF table tags to prototype 2014-09-15 11:35:42 -04:00
yelouafi
9f4c6345c5 Moved @tag definition to the derived Table constructors 2014-09-13 17:30:42 +00:00
yelouafi
c7c20ef6b7 removed @constructor.name line, corrected @tag params 2014-09-12 21:47:46 +00:00
yelouafi
7f8714a40f TTFFont.parse should call *Table constructors with explicit @tag param 2014-09-12 18:34:44 +00:00
Edward Faulkner
3acfa5833d prevent missing ascender from breaking layout 2014-09-11 19:31:21 -04: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
0d882e0ef0 Remove old font parsing library 2014-07-19 12:51:38 -07:00
Devon Govett
f76f25bbd8 Remove unneeded import 2014-07-19 12:43:20 -07:00
Devon Govett
8e10736ad6 Add kerning support for standard PDF fonts by parsing data in AFM files 2014-07-06 00:16:23 -07:00
Devon Govett
67b0d8da19 Add kerning support for embedded fonts 2014-07-06 00:15:59 -07:00
Devon Govett
0c5f818e23 Split PDFFont class into separate subclasses for embedded and standard fonts 2014-07-06 00:03:12 -07:00
Devon Govett
4ce53698c0 Replace font engine with new fontkit module 2014-07-03 18:57:36 -07:00
Devon Govett
bb9b77cb82 Allow loading fonts from Buffers in addition to filenames 2014-04-12 20:44:19 -07:00
Devon Govett
801981728c Make AFMFont.open different from constructor 2014-04-12 20:35:14 -07:00
Devon Govett
8c51ee077f Make sure that sfnt key exists in dfont so we don't throw random errors 2014-04-09 23:44:31 -07:00
Devon Govett
87fd69b7e5 Don't overwrite cmap method 2014-04-09 23:41:06 -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
cbaff9962d Work around silly CoffeeScript bug. Fixes #70. 2012-04-20 11:29:12 -07:00
Devon Govett
bfd4ab3e55 Fix weird DFont parsing issues. Should fix usage of Mac OS X system fonts. Closes #34. 2012-04-04 00:08:18 -07:00
Devon Govett
78c578972d Fix path 2011-07-26 22:02:11 -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
9215fc1b02 Initial commit 2011-07-09 22:57:00 -04:00