commit | 2a2258ff36e99cf9156acfc715e3f83d47d6f0fd | [log] [tgz] |
---|---|---|
author | Denys Smirnov <denis.smirnov.91@gmail.com> | Wed Oct 24 00:36:30 2018 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Oct 25 23:34:08 2018 |
tree | a67aafa5e4e3d0cd6227c1db8686a41d985bf6bd | |
parent | 9b1e201e7c4c9d6c9292ff73c2c1131e5aa5e5ac [diff] |
font/sfnt: support parsing legacy fonts with OS2 table version <= 1 Library assumes that OS/2 header size is at least 96 bytes, which is not the case for fonts with OS/2 table version <= 1. This CL adds a version test and handles the legacy header. Fixes golang/go#28339 Change-Id: I79bd8f8bbf262c1caaf4e66888446159b5e4fb43 Reviewed-on: https://go-review.googlesource.com/c/144079 Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Elias Naur <elias.naur@gmail.com>
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.