290 Commits

Author SHA1 Message Date
Mike Morris
0b0ffa80a8 refactor writing sfnt tables to pbf, write cmap as well 2016-05-09 17:24:28 -04:00
Mike Morris
a5e2378a52 add GDEF, GSUB and GPOS tables to protobuf 2016-05-06 19:27:04 -04:00
Mike Morris
dbb2bec82d log reference tables requested by harfbuzz 2016-05-06 15:03:31 -04:00
Mike Morris
dcf154edec encode gsub table in protobuf 2016-05-05 18:07:28 -04:00
Mike Morris
e92b70fdbf read stuff from protobufs in hb-ft.cc 2016-05-05 16:02:16 -04:00
Mike Morris
ed41504aa4 hack apart hb-ft.cc with a chainsaw 2016-05-05 13:49:17 -04:00
Mike Morris
757e52782a write to intermediate pbf file 2016-05-04 18:33:32 -04:00
Mike Morris
f469858618 FT_Set_Char_Size 2016-05-04 16:18:56 -04:00
Mike Morris
842287cc94 parse new glyphs protobuf with protozero 2016-05-04 16:15:13 -04:00
Mike Morris
fcc3b1788a bump mason 2016-05-03 19:08:24 -04:00
Mike Morris
6c35e941a2 autogenerated pbf parsing 2016-05-03 16:30:20 -04:00
Mike Morris
73b7be04d0 more refactoring 2016-05-02 16:08:34 -04:00
Mike Morris
902224a51b tweak glyphs.proto, add parsing 2016-04-26 15:11:45 -04:00
Mike Morris
dcae2b5d70 more reworking of proto spec 2016-04-19 18:07:59 -04:00
Mike Morris
049859b4e0 tiny initial changes in glyphs.proto 2016-04-19 17:33:49 -04:00
Mike Morris
b8ac7270b1 interception! 2016-04-19 17:30:18 -04:00
Mike Morris
72f6106bce harfbuzz@1.2.6, intercept hb-ft.cc
harfbuzz submodule for private headers

grab hb-version.h from mason
2016-04-19 17:30:18 -04:00
Mike Morris
90d1420939 sprinkle on some glyph loading 2016-04-19 17:30:18 -04:00
Mike Morris
f768ecdab5 mix it all together 2016-04-19 17:30:18 -04:00
Mike Morris
1c116ff2e1 stir in some harfbuzz 2016-04-19 17:30:18 -04:00
Mike Morris
bb6b91f802 sketch up the outline of a simple Shape method 2016-04-19 17:30:18 -04:00
Mike Morris
331fb5ffaf first draft of new proto spec with face metadata 2016-04-19 17:28:27 -04:00
Mike Morris
30b6e1b021 set sdf metadata as const static in glyphs.hpp 2016-04-19 17:23:27 -04:00
Mike Morris
c73d016353 add granularity 2016-04-19 17:23:27 -04:00
Mike Morris
eff4173c90 consitify braces and alignment 2016-04-19 17:23:27 -04:00
Mike Morris
eea416e6d9 add optional ascender and descender 2016-04-19 17:21:16 -04:00
Mike Morris
fc6f87708d handle null ft_face->style_name in RangeAsync 2016-01-12 11:27:23 -05:00
Mike Morris
f64eb5c938 handle ft_face->style_name null value
ft_face->style_name is optional in the TTF spec, we should properly
handle the null value case. This adds a font with a null style_name
property, an alternate constructor for FaceMetadata, and a test case to confirm style_name is only added to the JavaScript face if the string is not empty.
2016-01-11 17:26:37 -05:00
Mike Morris
ed9cde2cbe nan2
ignore -Wunused-local-typedef in boost
fix HandleScope and ignore -Wshadow in node.h
2015-10-16 16:25:46 -04:00
Mike Morris
a8aad572dc drop #undef B0 2015-07-09 16:09:42 -04:00
mattdesl
56136c5976 fixing bounds for short ranges 2015-05-07 15:06:37 -04:00
Dane Springmeyer
feb4a46acc shuffle includes: unordered_map is unused, cmath is 2015-03-23 17:35:55 -07:00
Dane Springmeyer
a92a35b04b silence boost warnings + fix header 2015-03-23 17:33:00 -07:00
Dane Springmeyer
064085f3aa keep things simple: no need for glyphs.hpp to be in nested dir 2015-03-23 17:30:52 -07:00
Lauren Budorick
c493204b16 Fix leaks 2015-03-23 17:21:38 -07:00
Lauren Budorick
1b408bdd8f Memory leak fixes (wip) 2015-03-23 15:59:19 -07:00
Dane Springmeyer
7d39a04311 minor optimizations and refactoring
- avoid allocating std::string and instead keep alive the node.Buffer
   containing the in-memory font data and use a pointer to its memory
 - use RAII principles in baton structs for setting up and destroying persistent handles
2015-03-23 02:37:01 -07:00
Lauren Budorick
87fbd848ca Loading faces from memory: super slow? 2015-03-20 16:49:42 -07:00
Lauren Budorick
b773cff3da Use set for codepoints, closes #67 2015-03-20 12:07:51 -07:00
Lauren Budorick
c687172eab Change fontnik.range to wrap args into an options object 2015-03-20 11:38:32 -07:00
Dane Springmeyer
4b754af222 test coverage of invalid font files 2015-03-20 00:26:59 -07:00
Dane Springmeyer
90224b0706 ignore missing coverage for failed FT_Init_FreeType 2015-03-19 18:46:27 -07:00
Lauren Budorick
937d148295 delete delete delete 2015-03-19 17:58:31 -07:00
Dane Springmeyer
6b62495f91 node v0.12.x support 2015-03-19 11:07:49 -07:00
Dane Springmeyer
0bfaf034ee use emplace_back to construct objects in place 2015-03-19 00:01:17 -07:00
Dane Springmeyer
b6f8ab1743 Start passing back FaceMetadata 2015-03-18 23:49:15 -07:00
Dane Springmeyer
b564fba4de prep for handling multiface fonts + call FT_Done_Freetype 2015-03-18 23:33:44 -07:00
Dane Springmeyer
5cf9c94898 simplify + use more of Nan API in AfterLoad 2015-03-18 23:32:06 -07:00
Dane Springmeyer
b5205b128f req is not heap allocated so no need to delete 2015-03-18 23:30:30 -07:00
Dane Springmeyer
f59833196c pass file_name string to baton 2015-03-18 23:29:47 -07:00