351 Commits

Author SHA1 Message Date
Denys Smirnov
19f95527b8 creator: remove SetEncoder from top 2018-12-15 18:49:15 +05:00
Denys Smirnov
62420700db fix case typos in errors 2018-12-15 18:49:15 +05:00
Denys Smirnov
3687c83b37 errors should start with a lower case 2018-12-15 18:49:15 +05:00
Denys Smirnov
d5a69b817c model: move CID font width array code to function and add a test case 2018-12-15 18:47:39 +05:00
Denys Smirnov
d3664d0f85 fonts: make metric tables for type1 fonts more compact by sharing glyphs 2018-12-15 18:47:39 +05:00
Denys Smirnov
3c8e70256d fonts: reuse metrics tables where possible 2018-12-15 18:47:39 +05:00
Denys Smirnov
0ef989c713 fonts: group similar fonts to a single file 2018-12-15 18:47:39 +05:00
Denys Smirnov
3b1a92701f fonts: remove redundant Type1 font interface implementations 2018-12-15 18:47:39 +05:00
Denys Smirnov
59f694d99f fonts: remove broken SetEncoder method for most fonts 2018-12-15 18:47:39 +05:00
Denys Smirnov
81bb03763b font: discovered a bug in SetEncoder 2018-12-15 18:47:39 +05:00
Denys Smirnov
7b4564aec5 model: clarify the usage of width map and ttf text encoder 2018-12-15 18:47:39 +05:00
Denys Smirnov
11081b20c5 fonts: clarify cid to gid mapping 2018-12-15 18:47:39 +05:00
Denys Smirnov
e07fa3b2c0 model: add a reference to width table format and simplify the code 2018-12-15 18:47:39 +05:00
Denys Smirnov
7e2a987f8a model: remove unused font width index 2018-12-15 18:47:39 +05:00
Denys Smirnov
2274cbdf8c fonts: add a function to make a text encoder from ttf font 2018-12-15 18:47:39 +05:00
Gunnsteinn Hall
1fe74f5116 Merge branch 'linter' of https://github.com/dennwc/unidoc into v3-dennwc-linter 2018-12-12 09:47:28 +00:00
Aleksei Pavliukov
e0f3189f5b Add PdfAppender 2018-12-11 18:51:07 +03:00
Denys Smirnov
3f7ad73812 refactor some receiver and method names; fix typos in comments 2018-12-11 04:37:00 +02:00
Denys Smirnov
0a8b46daff don't use generic receiver names; make sure receiver name is consistent 2018-12-09 21:47:15 +02:00
Denys Smirnov
9f0df8945d don't use XXX for TODOs 2018-12-09 21:39:11 +02:00
Denys Smirnov
6d2c39043c make sure comments begin with a type/function name 2018-12-09 20:22:33 +02:00
Denys Smirnov
e286eecac9 remove unused functions and globals; add todos for unused params 2018-12-09 19:37:07 +02:00
Denys Smirnov
5993a8b171 remove redundant types in literals 2018-12-09 19:30:13 +02:00
Denys Smirnov
99f3184879 define slices with a var instead of an empty literal 2018-12-09 19:28:50 +02:00
Denys Smirnov
fb4a087a93 textencoding: introduce GlyphName type 2018-11-29 23:24:40 +02:00
Denys Smirnov
27efe08a26 cmap: remove global for missing code; should replace the rune afterwards 2018-11-29 04:52:23 +02:00
Denys Smirnov
8a4c4069b7 textencoding: unexport CodeToGlyph field 2018-11-29 04:42:35 +02:00
Denys Smirnov
6fddd80eba textencoding: assert the type of differences map 2018-11-29 04:40:25 +02:00
Denys Smirnov
7c8d88185c fonts: assert type of another map; add some comments 2018-11-29 04:30:37 +02:00
Denys Smirnov
b91c1b8c61 model: remove unnecessary typ names in font initialization 2018-11-29 04:19:29 +02:00
Denys Smirnov
46d22eac31 fonts: introduce types for GIDs and char codes; fix shadowing bug 2018-11-29 04:19:29 +02:00
Denys Smirnov
ab62ff5060 fonts: specify rune type as a key for Chars and runeToWidth 2018-11-29 04:19:29 +02:00
Denys Smirnov
6c0fd1e780 cmap: mapped values are runes, not strings 2018-11-29 04:19:29 +02:00
Denys Smirnov
5b0eaf3f3a creator: make output stable when using custom fonts; fixes #232 2018-11-29 02:56:26 +02:00
Denys Smirnov
2d7d6334bc fonts: add tests for ttf parser 2018-11-17 15:03:38 +01:00
Denys Smirnov
86a30df78c fonts: floats should be signed 2018-11-17 15:03:34 +01:00
Denys Smirnov
c8c7a03896 fonts: fix glyph id bounds check 2018-11-07 22:09:57 +02:00
Denys Smirnov
08c1fe4ed4 fonts: remove unused field 2018-11-07 22:09:57 +02:00
Gunnsteinn Hall
4e2e3defba Merge branch 'v3' into v3-enhance-forms 2018-10-23 12:09:01 +00:00
Gunnsteinn Hall
d756c17011 Addressing PR 238 review comments 2018-10-23 12:03:47 +00:00
Gunnsteinn Hall
8007138bd3 Addressing PR 238 review comments 2018-10-23 11:43:02 +00:00
Denys Smirnov
995f1595ce textencoding: don't use explicit type for nested map declarations 2018-10-16 01:44:12 +03:00
Denys Smirnov
a5b5c63f89 model: fix runes enumeration in composite fonts 2018-10-16 01:44:12 +03:00
Denys Smirnov
558fe5a420 model: use composite struct literal for initialization 2018-10-16 01:44:12 +03:00
Gunnsteinn Hall
c87723b411 Update to prepare PR 2018-10-15 10:58:19 +00:00
Gunnsteinn Hall
54b47021e4 Change optimizer to FlateEncoding - seems more robust 2018-10-13 17:44:38 +00:00
Gunnsteinn Hall
3454ec67dc Merge branch 'v3' into v3-enhance-forms 2018-10-13 11:32:20 +00:00
Gunnsteinn Hall
4eafe4f404 Cleaning up digital signatures from the v3-enhance-forms branch 2018-10-13 11:02:09 +00:00
Gunnsteinn Hall
817d0dc805 Field appearance alignment refinements with some options. 2018-10-12 00:53:41 +00:00
Gunnsteinn Hall
bc6391200a Avoid outputing invalid Encoding name for generated standard fonts (use font encoding instead) 2018-10-10 22:44:55 +00:00