image/font/sfnt
Oliver Tonnhofer 0694c2d4d0 font/sfnt: support for large kern tables
The subtable length from the kern table is only uint16. Fonts like
Cambria, Calibri or Corbel have more then 10k kerning pairs and the
encoded length is truncated to uint16. Validate length with truncated
values as well.

Change-Id: I788b709e913790b936d928e7b1e92f628b9c0adf
Reviewed-on: https://go-review.googlesource.com/c/159637
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2019-02-27 22:21:17 +00:00
..
cmap.go font/sfnt: support cmap format 6 2019-01-18 04:33:09 +00:00
data.go font/sfnt: implement Font.GlyphName. 2017-02-17 10:37:04 +00:00
example_test.go font/sfnt: rename ExampleRasterizeGlyph to Example_rasterizeGlyph 2018-11-09 00:22:02 +00:00
gen.go font/sfnt: implement Font.GlyphName. 2017-02-17 10:37:04 +00:00
gpos.go font/sfnt: support for kerning from GPOS tables 2019-02-09 06:06:08 +00:00
kern_test.go font/sfnt: support for kerning from GPOS tables 2019-02-09 06:06:08 +00:00
postscript.go font/sfnt: implement hflex and hflex1. 2017-05-23 02:19:15 +00:00
proprietary_test.go font/sfnt: support for kerning from GPOS tables 2019-02-09 06:06:08 +00:00
sfnt.go font/sfnt: support for large kern tables 2019-02-27 22:21:17 +00:00
sfnt_test.go font/sfnt: parse and expose PostScript information 2018-11-15 06:11:51 +00:00
truetype.go font/sfnt: implement Font.GlyphAdvance. 2017-04-05 22:26:46 +00:00