Denys Smirnov
f6506204d7
fonts: simplify code by getting width of runes in font instead of glyphs
2018-12-28 01:38:48 +02:00
Denys Smirnov
107718c711
fonts: comment about Wy font metric
2018-12-28 01:08:50 +02:00
Denys Smirnov
8835230856
model: fix tests after the merge
2018-12-27 12:37:32 +02:00
Denys Smirnov
53687f854e
Merge remote-tracking branch 'origin/v3' into extract.text
...
# Conflicts:
# pdf/contentstream/processor.go
# pdf/extractor/text.go
# pdf/extractor/utils.go
# pdf/internal/textencoding/winansi.go
# pdf/model/font.go
# pdf/model/font_composite.go
# pdf/model/font_simple.go
# pdf/model/font_test.go
# pdf/model/fontfile.go
# pdf/model/fonts/ttfparser.go
# pdf/model/structures.go
2018-12-27 12:17:28 +02:00
Denys Smirnov
217f984033
fonts: make standard font names type-safe
2018-12-19 16:55:27 +05:00
Denys Smirnov
7f667d8fbb
model: remove Standard14Font in favor of fonts.StdFont; resolves #269
2018-12-19 13:43:09 +05:00
Denys Smirnov
5993a8b171
remove redundant types in literals
2018-12-09 19:30:13 +02:00
Denys Smirnov
99f3184879
define slices with a var instead of an empty literal
2018-12-09 19:28:50 +02:00
Denys Smirnov
7cdbb0c572
Merge remote-tracking branch 'origin/v3' into extract.text
...
# Conflicts:
# pdf/internal/textencoding/truetype.go
# pdf/model/font.go
# pdf/model/font_composite.go
# pdf/model/font_simple.go
# pdf/model/font_test.go
# pdf/model/fonts/ttfparser.go
2018-12-07 18:30:37 +02:00
Gunnsteinn Hall
2b1c796a74
Addressing review comments
2018-11-30 23:01:04 +00:00
Denys Smirnov
fb4a087a93
textencoding: introduce GlyphName type
2018-11-29 23:24:40 +02:00
Denys Smirnov
46d22eac31
fonts: introduce types for GIDs and char codes; fix shadowing bug
2018-11-29 04:19:29 +02:00
Peter Williams
6e5e32dd92
Fixed encoding selection for standard 14 fonts.
2018-11-22 22:01:04 +11:00
Peter Williams
851aa267b1
Added test for position based text extraction
2018-11-12 11:04:09 +11:00
Peter Williams
75aa370467
Updated font_test.go for treating æ and Æ as letters rather than ligatures.
2018-11-10 08:56:47 +11:00
Peter Williams
a6ce81c001
Merge branch 'render.v3.hungarian' into extract
2018-11-02 15:13:48 +11:00
Peter Williams
3da4ffc5aa
Merge
2018-11-01 21:33:51 +11:00
Peter Williams
7217946134
Merge branch 'v3' of https://github.com/unidoc/unidoc into render.v3.hungarian
2018-11-01 15:02:08 +11:00
Peter Williams
86108bd2b9
Build font descriptor literals from .afm files
2018-10-23 10:36:38 +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
2452973cfe
Don't add /Encoding entry to standard 14 font dicts.
...
Moved the standard 14 font encoders to a separate field pdfFontSimple.std14Encoder.
2018-10-16 14:50:43 +11:00
Gunnsteinn Hall
bc6391200a
Avoid outputing invalid Encoding name for generated standard fonts (use font encoding instead)
2018-10-10 22:44:55 +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
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