54 Commits

Author SHA1 Message Date
Denys Smirnov
fb4a087a93 textencoding: introduce GlyphName type 2018-11-29 23:24:40 +02:00
Denys Smirnov
27efe08a26 cmap: remove global for missing code; should replace the rune afterwards 2018-11-29 04:52:23 +02:00
Denys Smirnov
8a4c4069b7 textencoding: unexport CodeToGlyph field 2018-11-29 04:42:35 +02:00
Denys Smirnov
6fddd80eba textencoding: assert the type of differences map 2018-11-29 04:40:25 +02:00
Denys Smirnov
46d22eac31 fonts: introduce types for GIDs and char codes; fix shadowing bug 2018-11-29 04:19:29 +02:00
Denys Smirnov
6c0fd1e780 cmap: mapped values are runes, not strings 2018-11-29 04:19:29 +02:00
Gunnsteinn Hall
817d0dc805 Field appearance alignment refinements with some options. 2018-10-12 00:53:41 +00:00
Gunnsteinn Hall
ced423e2ce Fix for loading standard fonts with Encoding difference maps 2018-10-02 01:20:39 +00:00
Gunnsteinn Hall
aea91f1ba9 Merge branch 'v3' into v3-enhance-forms 2018-09-29 16:59:16 +00:00
Gunnsteinn Hall
9f06ba4ee8 Fix for using loaded standard14 fonts with test case 2018-09-29 02:24:10 +00:00
Peter Williams
c76fa6985e Moved font cache from global variable to Extractor. 2018-09-22 09:28:18 +10:00
Peter Williams
75dfdb6f1c Use Standard14Font consistently for standard 14 font names. 2018-09-21 16:25:57 +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
4d5156c4a0 Added NewStandard14FontMustCompile 2018-09-07 19:11:58 +10:00
Peter Williams
f84792531f Fixed bugs introduced into creator_test.go by font changes.
- Use pdfFontType0 Encoding value for encoding name if it is set.
- Use DW entry in CID Type2 fonts
- Encode CID fonts using 2 bytes / character
2018-09-03 10:48:31 +10:00
Peter Williams
660c1b934b added change left out of previous commit 2018-08-22 15:05:34 +10:00
Peter Williams
e5ec5406f6 Changes to get creator working better.
- textencoding.RuneToGlyph always returns a value
- Encode empty /Difference correctly
- NewParagraph sets a custom encoding that matches its text
2018-08-22 14:51:50 +10:00
Peter Williams
cc4f64fa98 small tidy up 2018-08-21 12:43:51 +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
Gunnsteinn Hall
7bac3c779c Merge branch 'v3' into enhance-forms 2018-08-03 21:15:21 +00: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
Hiroshi Muramatsu
5257855e29 Define font descriptor flags 2018-07-23 13:21:13 +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
7f5475badb attempting to simplify render branch 2018-07-16 17:42:08 +10:00
Peter Williams
53209c7170 unpack ligatures 2018-07-16 08:09:23 +10:00
Peter Williams
6582182078 reduced differences with compositefont branch 2018-07-15 16:28:56 +10:00
Peter Williams
bc1e9ae7b5 Refactored font code to improve text extraction 2018-07-13 17:40:27 +10:00
Hiroshi Muramatsu
299f65df69 Remove unnecessary argument 2018-07-11 09:04:17 +10:00
Hiroshi Muramatsu
1bfc2cc31b Use embedded field directly 2018-07-09 18:00:10 +10:00
Peter Williams
c9f2b87def Added NewStandard14Font() to make existing fonts.Font code work with *PdfFont 2018-07-07 09:45:55 +10:00
Peter Williams
86e833bf2b Continuing to integrate standard 14 fonts into simple fonts. 2018-07-06 16:41:13 +10:00
Peter Williams
606a271d00 Show font object number in font string for debugging 2018-07-05 09:58:25 +10:00
Peter Williams
49674d6b63 Changed error handling. Allow partial encoding maps. Don't continue processing unsupported fonts 2018-07-04 18:00:37 +10:00
Peter Williams
ec50032dc5 Merge branch 'render' of https://github.com/peterwilliams97/unidoc into render 2018-07-03 14:26:04 +10:00
Peter Williams
33079bbb72 Parse FontFile entry in FontDescriptor 2018-07-03 14:26:42 +10:00
Peter Williams
64a1b48d40
Merge pull request #1 from hiroxy/render
Render
2018-07-03 11:19:43 +10:00
Peter Williams
d6bd8e3326 first attempt at parsing FontFile 2018-07-02 16:46:43 +10:00
Hiroshi Muramatsu
9675882cb4 Reduce number of memory allocations 2018-07-02 13:49:06 +10:00
Peter Williams
c6f7cf9eef Got Type0 font -> obj -> font test passing 2018-06-29 18:09:44 +10:00
Peter Williams
d0448a9662 made pdfCIDFontType0 a clear stub 2018-06-29 16:36:06 +10:00
Peter Williams
187c3e37dd Added more font description strings for pdf_fonts.go test program 2018-06-29 14:21:59 +10:00
Peter Williams
539a3be976 re-ordered font.go functions, public at top 2018-06-28 17:39:20 +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
4cc6c14a8e Fall back to font encoding when ToUnicode doesn't match 2018-06-27 22:01:17 +10:00
Peter Williams
bd7a556e1a fixed 2 cmap typos 2018-06-27 17:27:41 +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