Skip to content

Commit

Permalink
Correct default font generator to use runtime.Caller(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
200sc committed Mar 19, 2019
1 parent dc01c5a commit fd9592f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (fg *FontGenerator) Generate() *Font {
if defaultFontFile != "" {
fg.File = defaultFontFile
} else {
_, curFile, _, _ := runtime.Caller(1)
_, curFile, _, _ := runtime.Caller(0)
dir = filepath.Join(filepath.Dir(curFile), "default_assets", "font")
fg.File = "luxisr.ttf"
}
Expand Down

0 comments on commit fd9592f

Please sign in to comment.