set fontHeight in SetFontFace

This commit is contained in:
Michael Fogleman 2016-12-20 19:30:13 -05:00
parent bc0c0e9e67
commit 6166aa3c1a

View File

@ -589,6 +589,7 @@ func (dc *Context) DrawImageAnchored(im image.Image, x, y int, ax, ay float64) {
func (dc *Context) SetFontFace(fontFace font.Face) {
dc.fontFace = fontFace
dc.fontHeight = float64(fontFace.Metrics().Height) / 64
}
func (dc *Context) LoadFontFace(path string, points float64) error {