Denys Smirnov
995f1595ce
textencoding: don't use explicit type for nested map declarations
2018-10-16 01:44:12 +03: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
d96f963de2
Changed Encode signature from Encode(raw string) string to Encode(raw string) []byte.
2018-08-20 20:13:10 +10:00
Peter Williams
b9561f0671
file left out of previous commit
2018-08-20 18:37: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
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
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
63afbb525c
doc changes after pull request review
2018-07-25 16:14:19 +10:00
Peter Williams
84a4e0ebbf
Removed GetArrayVal
2018-07-25 13:19:09 +10:00
Peter Williams
e886846c6a
Changes after pull request review
2018-07-24 21:32:02 +10:00
Peter Williams
2468e2b264
Merge branch 'render' into render.clean
2018-07-21 14:18:48 +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
Peter Williams
e6bf6f511a
Implement standard encoding with SimpleEncoder
2018-07-06 16:55:39 +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
33079bbb72
Parse FontFile entry in FontDescriptor
2018-07-03 14:26:42 +10:00
Peter Williams
d6bd8e3326
first attempt at parsing FontFile
2018-07-02 16:46:43 +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
e391e80e21
Added comment listing standard encodings
2018-06-28 11:08:09 +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