commit | 63626fb251ce5d89650d28bc5d6ccd7d63a70fef | [log] [tgz] |
---|---|---|
author | Denys Smirnov <denis.smirnov.91@gmail.com> | Thu Oct 25 03:51:34 2018 +0300 |
committer | Nigel Tao <nigeltao@golang.org> | Fri Nov 02 02:16:09 2018 +0000 |
tree | 8a741ddf29db490d210a1f3411b96fc90aaabfa1 | |
parent | 69cc3646b96e61de0b417f4815b86c36e65783ee [diff] |
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>
This repository holds supplementary Go image libraries.
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
.
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.