golang-image/font
Elias Naur cc896f830c 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>
2018-06-28 06:20:38 +00:00
..
basicfont font/basicfont: add Descent and Left fields. 2016-06-30 00:32:31 +00:00
gofont font/gofont: new Smallcaps; update other Go Fonts. 2017-03-30 00:58:26 +00:00
inconsolata font/inconsolata: new package. 2016-06-30 01:20:08 +00:00
opentype font/sfnt,font/opentype: correct font height computation 2018-06-28 06:20:38 +00:00
plan9font font/plan9font: look for subfont ".0" suffixes. 2016-08-07 01:57:26 +00:00
sfnt font/sfnt,font/opentype: correct font height computation 2018-06-28 06:20:38 +00:00
testdata font/sfnt: implement flagWeHaveATwoByTwo. 2017-03-22 21:43:44 +00:00
font_test.go font: fix rectangle-union for empty rectangles. 2016-12-28 23:11:51 +00:00
font.go math/fixed: add some Point and Rectangle methods. 2017-01-06 00:18:22 +00:00