golang-image/font/opentype
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
..
face_test.go font/sfnt,font/opentype: correct font height computation 2018-06-28 06:20:38 +00:00
face.go font/opentype: implement font.Face interface 2017-12-08 23:31:33 +00:00
opentype.go font/opentype: implement font.Face interface 2017-12-08 23:31:33 +00:00