Peter Williams
b9561f0671
file left out of previous commit
2018-08-20 18:37:47 +10:00
Peter Williams
8b6a14a2f9
Added a function to create an encoder for a specified alphabet for simple fonts.
2018-08-20 17:58:01 +10:00
Peter Williams
c2feafdfdc
Fixed some issues in creator code
...
Stopped double converting from Go strings to PDF encoded strings
Added TTF parse table format 12
2018-08-17 08:41:35 +10:00
Peter Williams
fefff56603
Cleaned up some comments in creator.
2018-08-15 17:36:42 +10:00
Peter Williams
ffa7f9b482
Changed the literal rune maps in simple.go to use hex numbers rather than character codes.
...
Go sometimes subsitutes literal character codes (e.g. '\u2206') with other runes. This doesn't
happen if the literal is written as a number (e.g. 0x2206 ). I am not sure why Go does this.
2018-08-15 17:15:27 +10:00
Peter Williams
1847fcf8db
Converted creator to new font code
2018-08-15 09:32:13 +10:00
Peter Williams
d64785a8ca
Added more font tests
2018-08-14 21:28:57 +10:00
Peter Williams
26e6e114ad
removed debug code that was accidentally commited
2018-08-14 12:01:12 +10:00
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