Skip to content

Commit

Permalink
Merge pull request #627 from k1LoW/use-alias
Browse files Browse the repository at this point in the history
Use alias ( go-graphviz )
  • Loading branch information
k1LoW authored Oct 25, 2024
2 parents 26ada2f + 25b17be commit 5b006c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions output/gviz/gviz.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"github.com/beta/freetype/truetype"
"github.com/goccy/go-graphviz"
"github.com/goccy/go-graphviz/gvc"
"github.com/k1LoW/errors"
"github.com/k1LoW/ffff"
"github.com/k1LoW/tbls/config"
Expand Down Expand Up @@ -75,7 +74,7 @@ func (g *Gviz) render(wr io.Writer, b []byte) (e error) {
return errors.WithStack(err)
}
// FIXME: more better way
graphviz.SetFontLoader(func(ctx context.Context, job *gvc.Job, font *gvc.TextFont) (font.Face, error) {
graphviz.SetFontLoader(func(ctx context.Context, job *graphviz.Job, font *graphviz.TextFont) (font.Face, error) {
return faceFunc(font.Size())
})
}
Expand Down

0 comments on commit 5b006c0

Please sign in to comment.