Commit Graph

333 Commits

Author SHA1 Message Date
Eliot Jones
ebdda46098 make rectangle a struct. add infrastructure for handling composite glyphs 2018-04-14 14:11:10 +01:00
modest-as
fcc0e06bef fallbacks to true type font bounding boxes 2018-04-14 12:39:53 +01:00
modest-as
fe3f627f9c merge from upstream 2018-04-13 00:32:12 +01:00
modest-as
05da4d0726 more work on boundaries and unit tests 2018-04-13 00:18:38 +01:00
Eliot Jones
08f11343d3 more integration tests 2018-04-12 23:32:51 +01:00
Eliot Jones
e063ac45fe add support for parsing pfb files in type 1 fonts and an extra integration test 2018-04-12 22:34:38 +01:00
modest-as
1da3975325 merge from upstream 2018-04-11 23:17:37 +01:00
Eliot Jones
7af2b1bcb9 start adding code and tests for reading metrics of type 1 fonts 2018-04-11 22:51:31 +01:00
Eliot Jones
92c0ef14cb support format 6 cmap sub tables for truetype fonts. pass the truetypefont to the ifont implementation so we can use it to access font data 2018-03-31 12:11:12 +01:00
modest-as
564e32e072 Return bounding boxes for letters 2018-03-30 23:16:54 +01:00
Eliot Jones
c64e54d6c0 support opening from stream and improve performance of brute force searching since the seek operation is now slower. 2018-01-21 19:34:21 +00:00
Eliot Jones
07161cef28 unify raw byte access method 2018-01-21 18:08:00 +00:00
Eliot Jones
3172596b7c remove all old cos objects 2018-01-21 14:56:50 +00:00
Eliot Jones
e24a306c31 remove all old parsing logic 2018-01-21 14:48:49 +00:00
Eliot Jones
7d90f4858a continue migrating code to tokenizer 2018-01-20 18:42:29 +00:00
Eliot Jones
3d2a66cbf9 fix bug with endstream appearing without line break 2018-01-20 11:53:24 +00:00
Eliot Jones
c5e3ce7ec7 finish moving all parsing to token scanner 2018-01-20 00:49:53 +00:00
Eliot Jones
a0deab446b switch classes still using the cos object approach to the tokenization approach initally used for parsing cmap files. 2018-01-19 00:35:04 +00:00
Eliot Jones
0ead678a43 add tests for array token 2018-01-17 21:48:11 +00:00
Eliot Jones
69736d80cb add plain tokenizer tests for uncovered lines and add editorconfig 2018-01-16 08:00:52 +00:00
Eliot Jones
54b6374e7d coverage for the name tokenizer reading hex 2018-01-15 21:16:36 +00:00
Eliot Jones
4443cde229 add very hacky parsing for type 1 font files in order to read the encoding 2018-01-14 18:59:03 +00:00
Eliot Jones
615ee88a46 start passing the pdf scanner in to read the type 1 files 2018-01-14 15:33:22 +00:00
Eliot Jones
1fb6ec41d1 remove cos object key completely and test indirect reference 2018-01-14 15:01:18 +00:00
Eliot Jones
36c0eedd7c move the usages of cos object key to indirect reference 2018-01-14 14:48:54 +00:00
Eliot Jones
b19b96604d make the pdf object scanner work with streams 2018-01-14 10:53:01 +00:00
Eliot Jones
8dcea9b37f create a pdf object scanner which sits on top of the core token scanner to provide complete object parsing 2018-01-13 22:30:15 +00:00
Eliot Jones
595c137282 comment out local test 2018-01-13 20:19:34 +00:00
Eliot Jones
95ead2a3de use direct object finder when getting the name of the base font in type 1 and truetype fonts. 2018-01-13 20:06:58 +00:00
Eliot Jones
c88db947ad fix bug with hex names mapping to unicode in the glyph list. 2018-01-12 19:58:54 +00:00
Eliot Jones
02a1c1ed51 more tests for glyphlist 2018-01-11 20:52:13 +00:00
Eliot Jones
ba8d2f5b1d fix a bug with tokenization without spaces before string 2018-01-10 22:15:29 +00:00
Eliot Jones
ec62542b64 change the project name to something silly 2018-01-10 19:49:32 +00:00