Peter Williams
5e8ca9c18c
Fixed code->glyph mapping for TrueType fonts for raw number gid
2018-10-29 09:08:32 +11:00
Peter Williams
b23600c9f4
Merge branch 'render.v3.hungarian' into extract
2018-10-23 10:59:59 +11:00
Peter Williams
5d15dc97dd
Removed code with problematic provenance.
2018-10-23 10:44:58 +11:00
Peter Williams
86108bd2b9
Build font descriptor literals from .afm files
2018-10-23 10:36:38 +11:00
Peter Williams
28c99083d4
Merge branch 'render.v3.hungarian' into extract
2018-10-19 13:32:34 +11:00
Peter Williams
ade6fa0405
Added tcpdf licence
2018-10-19 13:31:25 +11:00
Peter Williams
45f6c09e39
Merge branch 'render.v3.hungarian' into extract
2018-10-19 10:05:02 +11:00
Peter Williams
b48010c75b
Fixed typo
2018-10-18 21:39:16 +11:00
Peter Williams
45228219b5
Added PdfFont.FontDescriptor() which always returns a PdfFontDescriptor, possibly a builtin one for
...
the standard 14 fonts.
2018-10-18 21:12:15 +11:00
Peter Williams
f6dc3e2fc3
First attempt at splitting words in text extraction using a space detection heuristic
2018-10-09 11:49:59 +11:00
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
b0f5329425
Allow TrueType font files to not have PostScript entries in their "name" table.
2018-09-24 17:53:12 +10:00
Peter Williams
24d522bdb2
Merge branch 'v3' of https://github.com/unidoc/unidoc into extract
2018-09-24 15:25:44 +10:00
Peter Williams
69be54d501
Cleaned up some comments.
2018-09-21 16:43:10 +10:00
Peter Williams
44563f2cae
Added fontMetrics to font loader and GetAverageCharWidth to PdfFont
2018-09-19 11:12:59 +10:00
Peter Williams
b18c8ca93d
Add ToUnicode map when embedding Type0 CIDType2 fonts in PDF files.
2018-09-17 17:57:52 +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
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
d64785a8ca
Added more font tests
2018-08-14 21:28:57 +10:00
Gunnsteinn Hall
6c34f32c7f
Updating headers and package descriptions
2018-08-03 10:15:42 +00:00
Gunnsteinn Hall
a505bf67dd
Move supplementary files to testdata folders
2018-08-03 10:13:21 +00: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
63afbb525c
doc changes after pull request review
2018-07-25 16:14:19 +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
879b07df16
Added a test for CharcodeBytesToUnicode for Type0 ToUnicode cmaps
2018-07-19 10:28:23 +10:00
Peter Williams
79aa75acf8
made font metrics public
2018-07-16 17:40:28 +10:00
Peter Williams
6582182078
reduced differences with compositefont branch
2018-07-15 16:28:56 +10: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
Peter Williams
efaadcae4f
Use standard conventions for cmap names
2018-06-27 14:22:47 +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
Gunnsteinn Hall
646329ff21
Initial support for composite fonts (Type0 and CIDFontType2).
...
Simplified creator paragraph handling of text encoding.
Character codes expanded to 16bit instead of 8bit.
2017-09-01 13:20:51 +00:00
Gunnsteinn Hall
badce2938f
Address gofmt simplify items
2017-07-31 14:54:14 +00:00
Gunnsteinn Hall
ee23f22df6
Use build flag unidev to build development utils
2017-07-25 16:36:32 +00:00
Gunnsteinn Hall
5ce423ffcd
Cleaned up text encoding interface and rune<->glyph conversions. Added test example for Symbol and ZapfDingbats font/encodings. Closes #59 .
2017-07-10 15:17:46 +00:00
Gunnsteinn Hall
ca74ee87a1
Add Symbol font encoder and test example case for symbol font use
2017-07-09 22:37:05 +00:00
Gunnsteinn Hall
c6e7b8c62f
Add standard 14 fonts support
2017-07-08 23:09:52 +00:00
Gunnsteinn Hall
10c3be8c95
Change PdfObjectDictionary from map to struct and introduce ordered keys. Syntax change. Fixes all around to accommodate changes. Also fixes in test cases. Closes #56 .
2017-07-08 21:04:13 +00:00
Gunnsteinn Hall
1a5c3eb4ac
Initial import of PDF creator with text, image adding capabilities
2017-07-05 23:10:57 +00:00