23 Commits

Author SHA1 Message Date
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
23fe5a5cfe Change Paragraph.enableWrap default to false to make it hard to unintentional set zero width wrap. 2018-08-20 19:02:47 +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
1847fcf8db Converted creator to new font code 2018-08-15 09:32:13 +10:00
Gunnsteinn Hall
ce9c6ba114 Merge branch 'master' into compositefonts 2018-06-07 14:55:37 +00:00
Jordi Llonch
7ae11755c8 Added Paragraph.Text function returning text content 2018-02-15 13:11:32 +11:00
Julien Lefèvre
4f438e3fed dont encode glyphs when you only wrap 2017-09-22 10:57:16 +02: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
acb65b071e Address golint recommendations. Exported types Subchapter, Rectangle, TableCell, TableOfContentsEntry. Closes #82. 2017-08-01 13:10:48 +00:00
Gunnsteinn Hall
7ace3c96db Exported creator's Color interface. Addressed golint issues in creator's color.go, const.go 2017-07-31 14:06:47 +00:00
Gunnsteinn Hall
12f09116a2 Change from paragraph to exported type Paragraph. Address golint issues in creator's chapter.go. 2017-07-31 13:07:02 +00:00
Gunnsteinn Hall
0420787b50 Context update fixes 2017-07-26 16:11:28 +00:00
Gunnsteinn Hall
25c91a8943 Horizontal and vertical table cell alignment implemented. Closes #74. 2017-07-17 20:41:10 +00:00
Gunnsteinn Hall
83f9a0b989 Implemented generic color interface. Initial support for table borders and indent. Also, now setting some default parameters for paragraphs added to table. 2017-07-17 11:36:02 +00:00
Gunnsteinn Hall
11e4fae50b Updated color treatment as per #63. 2017-07-14 21:58:16 +00:00
Gunnsteinn Hall
ec4847d328 Expose subchapter paragraph heading for styling. Add capability to hide numbering, and remove from TOC. Closes #69 2017-07-14 12:56:42 +00:00
Gunnsteinn Hall
63904570a9 Fix paragraph margin X moving back issue 2017-07-13 15:35:54 +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
168c04d168 Basic creator table implementation. Closes #12. 2017-07-07 15:08:43 +00:00
Gunnsteinn Hall
ced03e48ee Table of contents generating function added. Exported some methods so drawables can be created externally. 2017-07-06 16:26:22 +00:00
Gunnsteinn Hall
1a5c3eb4ac Initial import of PDF creator with text, image adding capabilities 2017-07-05 23:10:57 +00:00