526 Commits

Author SHA1 Message Date
Peter Williams
aa88d8510a Cleaned up glyph<->unicode maps
These maps had been getting messy which made it hard for me to update them.

This change builds the full maps from source files which are included in the commit.
2018-08-14 11:56:09 +10:00
Peter Williams
08c3211590 Refactored simple textencoding
Made GlyphToCode work for all tables
Moved more aliases into glyphAliases rather than leaving the duplicates in the base maps.
Use SimpleEncoder explictly for simple fonts
2018-07-31 11:52:24 +10:00
Peter Williams
6b73b0d9eb Added more glyphs 2018-07-31 11:52:04 +10:00
Peter Williams
435bb91cb0 Explain Fall back to StandardEncoding. 2018-07-26 14:36:40 +10:00
Peter Williams
ac48862c39 Moved font test data to contrib/testdata/font 2018-07-25 18:10:41 +10:00
Peter Williams
63afbb525c doc changes after pull request review 2018-07-25 16:14:19 +10:00
Peter Williams
eb80c88da9 Made CIDSystemInfo a PdfObjectDictionary 2018-07-25 14:29:39 +10:00
Peter Williams
84a4e0ebbf Removed GetArrayVal 2018-07-25 13:19:09 +10:00
Peter Williams
b1cf3494f7 Removed naked returns. Fixed godoc. Reorganized object extractors 2018-07-25 12:00:49 +10:00
Peter Williams
e886846c6a Changes after pull request review 2018-07-24 21:32:02 +10:00
Peter Williams
e2b4f908bd removed panics 2018-07-23 17:14:42 +10:00
Peter Williams
8d64d5bec6 Merge branch 'hiroxy-render.v3' into render.v3 2018-07-23 17:06:35 +10:00
Hiroshi Muramatsu
994b69e970 Embed common font fields 2018-07-23 14:55:23 +10:00
Hiroshi Muramatsu
5257855e29 Define font descriptor flags 2018-07-23 13:21:13 +10:00
Peter Williams
990a56dc01 fixed typo 2018-07-22 16:00:45 +10:00
Peter Williams
bb3d219355 cleaned up comments 2018-07-22 12:47:38 +10:00
Peter Williams
502836666d Merge remote-tracking branch 'upstream/v3' into render.v3 2018-07-21 21:20:39 +10:00
Peter Williams
2468e2b264 Merge branch 'render' into render.clean 2018-07-21 14:18:48 +10:00
Peter Williams
28d2d223c4 Reduced logging noise 2018-07-21 08:53:59 +10:00
Peter Williams
c489d4630c Added some logging 2018-07-21 08:43:03 +10:00
Peter Williams
357d517498 Added tests for simple fonts and encodings 2018-07-20 22:18:18 +10:00
Peter Williams
ef97dd1d59 Added a test for font encodings with /Difference entries 2018-07-20 14:15:41 +10:00
Peter Williams
bb1c8197a0 Added a test for cmap beginbfchar and beginbfrange entries 2018-07-20 11:39:41 +10:00
Peter Williams
879b07df16 Added a test for CharcodeBytesToUnicode for Type0 ToUnicode cmaps 2018-07-19 10:28:23 +10:00
Peter Williams
6b507a21d7 fixed comments 2018-07-18 14:50:52 +10:00
Peter Williams
5d513ac8cf Removed debug code 2018-07-18 14:34:46 +10:00
Peter Williams
17d1112436 Added a test for Type1 FontFile decoding 2018-07-18 14:30:43 +10:00
Peter Williams
40430df9f6 removed unused code 2018-07-17 17:48:51 +10:00
Peter Williams
96dba88f57 Added a test for CharcodeBytesToUnicode for TrueType fonts with ToUnicode cmaps 2018-07-17 17:43:11 +10:00
Peter Williams
7f5475badb attempting to simplify render branch 2018-07-16 17:42:08 +10:00
Peter Williams
79aa75acf8 made font metrics public 2018-07-16 17:40:28 +10:00
Peter Williams
53209c7170 unpack ligatures 2018-07-16 08:09:23 +10:00
Gunnsteinn Hall
5b1b9bd504 PdfObjectArray change to struct and receivers added Elements, Get, Set, Len. Fixes to resulting broken code. 2018-07-15 17:52:53 +00:00
Peter Williams
fd95eabb14 fixed glyph name typo 2018-07-15 21:40:52 +10:00
Peter Williams
a3d2907d23 . 2018-07-15 17:58:00 +10:00
Peter Williams
e5783d58fb Don't import core anonymously 2018-07-15 17:29:27 +10:00
Peter Williams
3310b040db Don't import core anonymously 2018-07-15 17:22:00 +10:00
Peter Williams
8de07690ff allow change of text state outside BT..ET 2018-07-15 16:45:47 +10:00
Peter Williams
6582182078 reduced differences with compositefont branch 2018-07-15 16:28:56 +10:00
Gunnsteinn Hall
450aaf2d44 documentation enhancements in colorspace.go 2018-07-14 21:38:24 +00:00
Gunnsteinn Hall
fc15ef442a Cleaning up crossreferences - Unexporting, renaming, improving documentation
parser.Trace renamed to parser.Resolve
2018-07-14 14:07:33 +00:00
Gunnsteinn Hall
0edf3b11bf Doc fixes 2018-07-14 03:15:54 +00:00
Gunnsteinn Hall
dcf9262bf6 Unexport ModelManager 2018-07-14 03:07:24 +00:00
Gunnsteinn Hall
a66ad79023 Improving godoc and fixing style image.go 2018-07-14 02:57:57 +00:00
Gunnsteinn Hall
d8ce72df07 Move sampling package to internal 2018-07-14 02:34:46 +00:00
Gunnsteinn Hall
2023846073 Move ps package to internal 2018-07-14 02:33:28 +00:00
Gunnsteinn Hall
14ee80e1fe Preserve and allow output of hexadecimal strings
Refactored PdfObjectString into a struct with bool flag for hex.  Fixed any code broken by the change.
Unexported non-essential functions for crypto (not used by model).  Can unexport more later or refactor to internal package.
2018-07-14 02:25:29 +00:00
Gunnsteinn Hall
5e9ff8d3ca Helper functions for PdfObject conversions 2018-07-14 02:14:31 +00:00
Peter Williams
ae87dc79f3 keep going when FontFile2 encoding is empty 2018-07-13 21:15:03 +10:00
Peter Williams
bc1e9ae7b5 Refactored font code to improve text extraction 2018-07-13 17:40:27 +10:00