Skip to content

Commit

Permalink
set fontHeight in SetFontFace
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Dec 21, 2016
1 parent bc0c0e9 commit 6166aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 6166aa3

Please sign in to comment.