Fix SetFontFace method to be inline with LoadFontFace
This commit is contained in:
parent
72436a171b
commit
62489c0504
@ -683,7 +683,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
|
||||
dc.fontHeight = (float64(fontFace.Metrics().Height) / 64) * 72 / 96
|
||||
}
|
||||
|
||||
func (dc *Context) LoadFontFace(path string, points float64) error {
|
||||
|
Loading…
Reference in New Issue
Block a user