Peter Williams
f953c11452
Don't return errors for TrueType font file tables with no PostScript entry in their "name" table.
...
This is needed for PDFs created with Tesseract.
2018-09-24 18:02:02 +10:00
Peter Williams
75dfdb6f1c
Use Standard14Font consistently for standard 14 font names.
2018-09-21 16:25:57 +10:00
Peter Williams
adb16cd150
Moved files to new UniDoc directory layout.
2018-08-23 21:51:32 +10:00
Peter Williams
b7f1f3e291
Merge branch 'v3' of https://github.com/unidoc/unidoc into render.v3.hungarian
2018-08-22 22:01:00 +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
d64785a8ca
Added more font tests
2018-08-14 21:28:57 +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
Gunnsteinn Hall
e254fd763c
Move test and supplementary files to nearest package testdata.
2018-08-03 11:01:39 +00:00
Peter Williams
6b73b0d9eb
Added more glyphs
2018-07-31 11:52:04 +10:00
Peter Williams
ac48862c39
Moved font test data to contrib/testdata/font
2018-07-25 18:10:41 +10:00
Peter Williams
e886846c6a
Changes after pull request review
2018-07-24 21:32:02 +10:00
Peter Williams
502836666d
Merge remote-tracking branch 'upstream/v3' into render.v3
2018-07-21 21:20:39 +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
e5783d58fb
Don't import core anonymously
2018-07-15 17:29:27 +10:00
Hiroshi Muramatsu
21c3b4323e
Abort test if error occurs
2018-07-10 08:57:16 +10:00
Hiroshi Muramatsu
18481ea7e8
Modify log messages
2018-07-09 18:14:02 +10:00
Hiroshi Muramatsu
c919f47730
Add basic test cases
2018-07-09 18:01:22 +10:00
Peter Williams
c6f7cf9eef
Got Type0 font -> obj -> font test passing
2018-06-29 18:09:44 +10:00
Peter Williams
4c374b9f7e
Simplified font.go. Made ToUnicode cmap private. Removed duplicate ToUnicode from Type0 font
2018-06-28 11:06:23 +10:00
Peter Williams
199a74dbd8
Major changes to font code
...
- Added Type1 font parsing.
- Added Standard 14 font parsing.
- Fixed some bugs in cmap code.
- Started re-structuring of font code. Moved common font fields to `fontSkeleton`
2018-06-27 12:25:59 +10:00