Go to file
Denys Smirnov 63626fb251 font/sfnt: fix hmtx table size validation
The library assumes the hmtx size to be equal to 2*nGlyph + 2*nHm,
which is a simplification of 4*nHm + 2*(nGlyph-nHm) as described
in the spec. However, fonts seen in the wild sometimes omit the
second term (left side bearings), making validation to fail.

CL fixes the validation code by allowing to omit the second term.

Fixes golang/go#28379

Change-Id: I2293e498e72f95e5fe08c2b375ea7b020d06cde3
Reviewed-on: https://go-review.googlesource.com/c/144080
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2018-11-02 02:16:09 +00:00
bmp bmp: update comment about decoding 32 bpp images 2018-10-23 23:21:08 +00:00
cmd/webp-manual-test webp: fix tests for webp/nycbcra deprecation. 2016-04-02 01:02:22 +00:00
colornames colornames: export variables such as Darkred. 2016-05-27 00:36:51 +00:00
draw all: fix typos 2018-10-30 00:21:51 +00:00
example/font example/font: use an "example" build tag instead of "ignore". 2016-04-12 11:14:18 +00:00
font font/sfnt: fix hmtx table size validation 2018-11-02 02:16:09 +00:00
math math/fixed: add some Point and Rectangle methods. 2017-01-06 00:18:22 +00:00
riff riff: fix some short chunk data bugs. 2016-07-07 05:37:58 +00:00
testdata image/bmp: support v4 and v5 info header versions 2018-10-23 22:58:01 +00:00
tiff all: fix typos 2018-10-30 00:21:51 +00:00
vector vector: prevent fused multiply-add being used in floatingLineTo 2017-09-07 23:27:51 +00:00
vp8 all: fix typos 2018-10-30 00:21:51 +00:00
vp8l vp8l: don't ignore I/O errors when reading LZ77 parameters. 2015-05-11 04:53:56 +00:00
webp webp: make a placeholder package for Go 1.5 and earlier. 2016-07-16 05:04:44 +00:00
.gitattributes image: copying .gitattributes to all subrepositories 2014-12-23 11:05:35 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 10:42:30 +11:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
codereview.cfg image: add codereview.cfg 2015-03-18 17:04:05 +00:00
CONTRIBUTING.md CONTRIBUTING.md: remove note about not accepting Pull Requests 2018-03-14 18:02:48 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:31 +11:00
PATENTS go.image: add PATENTS file to the subrepo. 2012-04-16 11:25:02 +10:00
README.md README: fix go get instructions 2018-06-01 11:54:56 +00:00

Go Images

This repository holds supplementary Go image libraries.

Download/Install

The easiest way to install is to run go get -u golang.org/x/image/.... You can also manually git clone the repository to $GOPATH/src/golang.org/x/image.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the image repository is located at https://github.com/golang/go/issues. Prefix your issue with "x/image:" in the subject line, so it is easy to find.