1257 Commits

Author SHA1 Message Date
Gunnsteinn Hall
43fd7a1d52
Update README.md 2018-12-23 16:48:07 +00:00
Peter Williams
686a6e511e Merge branch 'v3-peterwilliams97-default-fontdescriptors' of https://github.com/unidoc/unidoc into extract.text 2018-12-21 16:32:33 +11:00
Gunnsteinn Hall
650dbf800c
Merge pull request #270 from dennwc/std14font
Replace Standard14Font with fonts.StdFont
2018-12-20 21:36:34 +00:00
Denys Smirnov
db8e50e457 model: fix wording in the comments 2018-12-19 16:59:13 +05:00
Denys Smirnov
217f984033 fonts: make standard font names type-safe 2018-12-19 16:55:27 +05:00
Denys Smirnov
85e1a02ac8 model: define an unexported pdfFont interface and remove error cases 2018-12-19 13:54:45 +05:00
Denys Smirnov
7f667d8fbb model: remove Standard14Font in favor of fonts.StdFont; resolves #269 2018-12-19 13:43:09 +05:00
Gunnsteinn Hall
2b718c9ba6
Merge pull request #260 from dennwc/font_interface
Preparations for a new font interface
2018-12-18 16:08:01 +00:00
Gunnsteinn Hall
e2d2510db2
Update README.md 2018-12-16 11:18:42 +00:00
Denys Smirnov
5bf2527b57 creator: clarify use of the default encoding and a way to override it 2018-12-15 19:39:59 +05:00
Denys Smirnov
e3704defc7 rename Typ1 font to StdFont 2018-12-15 19:39:55 +05:00
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
4abbe49007 remove unnecessary encoder override; add todo to check other code paths 2018-12-15 18:47:39 +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
4c99e7a692 textencoding: remove unused error value when making winansi encoding 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
1eed6fa36f
Merge pull request #267 from dennwc/linter
Fix code style issues
2018-12-12 10:30:15 +00: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
Gunnsteinn Hall
3f840fa3cb
Merge pull request #253 from a5i/v3-pdf-appender
Add PdfAppender
2018-12-12 09:28:47 +00:00
Gunnsteinn Hall
1f917a6fbf
Merge branch 'v3' into v3-pdf-appender 2018-12-12 09:24:54 +00:00
Gunnsteinn Hall
12e22ece00
Merge branch 'v3' into linter 2018-12-12 08:53:49 +00:00
Gunnsteinn Hall
bf26bac138
Merge pull request #266 from dennwc/creator_render_tests
Add rendering tests for creator package
2018-12-12 08:52:57 +00:00
Denys Smirnov
18579fd2ef add comments to rendering functions and the baseline env variable 2018-12-12 05:08:07 +02:00
Aleksei Pavliukov
e0f3189f5b Add PdfAppender 2018-12-11 18:51:07 +03:00
Denys Smirnov
fbc79d351f enable render tests only when the corresponding env variable is set 2018-12-11 04:41:42 +02: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
52fce3abcd creator: compare rendered PDFs pixel by pixel if hash comparison fails 2018-12-09 18:37:37 +02:00
Denys Smirnov
bfc4873830 creator: add optional rendering tests 2018-12-08 21:32:03 +02:00
Denys Smirnov
2658fe9c06 assert types for the new code as well 2018-12-07 18:43:24 +02:00
Denys Smirnov
7cdbb0c572 Merge remote-tracking branch 'origin/v3' into extract.text
# Conflicts:
#	pdf/internal/textencoding/truetype.go
#	pdf/model/font.go
#	pdf/model/font_composite.go
#	pdf/model/font_simple.go
#	pdf/model/font_test.go
#	pdf/model/fonts/ttfparser.go
2018-12-07 18:30:37 +02:00
Gunnsteinn Hall
01a87efdf3
Merge pull request #259 from dennwc/font_codes_strict
Strict types for runes, char codes and GIDs
2018-12-07 15:20:45 +00:00
Gunnsteinn Hall
12ea1a5927
Merge branch 'v3' into font_codes_strict 2018-12-07 15:15:27 +00:00