set fontHeight in SetFontFace
This commit is contained in:
parent
bc0c0e9e67
commit
6166aa3c1a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user