commit | c4226c0d9cb0b20ba5c42cf5e5a3619d8c2f88c7 | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Sun Jun 26 16:21:54 2016 +1000 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Jun 30 00:32:31 2016 +0000 |
tree | a6d76d0eddb8348d28810de231290ac15a588996 | |
parent | 97680175a5267bb8b31f1923e7a66df98013b11a [diff] |
font/basicfont: add Descent and Left fields. A face's glyph height (the height of the glyph image) isn't necessarily the inter-line spacing: f.Ascent + f.Descent isn't always f.Height. Similarly, a face's glyph image's left side isn't always dot.X. Change-Id: I86594c52b8d31bf652ac34a695e9270ac635a5bc Reviewed-on: https://go-review.googlesource.com/24481 Reviewed-by: David Crawshaw <crawshaw@golang.org>