commit | cc896f830cedae125428bc9fe1b0362aa91b3fb1 | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Mon Jun 25 19:10:44 2018 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Jun 28 06:20:38 2018 |
tree | 38265e1b99cd801080a162c91c21890bb9907b06 | |
parent | af66defab954cb421ca110193eed9477c8541e2a [diff] |
font/sfnt,font/opentype: correct font height computation According to https://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html the line spacing of a font is computed as line space = ascent - descent + linegap Use that formula to compute the Height field of a Font's Metrics. Change-Id: I1c44eca9f662e0aae68716cd8859670fe0b394d7 Reviewed-on: https://go-review.googlesource.com/120815 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.