Skip to content

Commit

Permalink
Fix: drow -> draw
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Aug 30, 2022
1 parent 17b366d commit c56c64e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drow.go → draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"golang.org/x/image/math/fixed"
)

func (p *picture) DrowWithColor(fontColor *image.Uniform, text string) *picture {
func (p *picture) DrawWithColor(fontColor *image.Uniform, text string) *picture {
// font color
p.c.SetSrc(fontColor)

Expand All @@ -32,7 +32,7 @@ func (p *picture) DrowWithColor(fontColor *image.Uniform, text string) *picture
return p
}

func (p *picture) DrowWithBlack(text string) *picture {
func (p *picture) DrawWithBlack(text string) *picture {
// font color
p.c.SetSrc(image.Black)

Expand All @@ -56,7 +56,7 @@ func (p *picture) DrowWithBlack(text string) *picture {
return p
}

func (p *picture) DrowWithWhite(text string) *picture {
func (p *picture) DrawWithWhite(text string) *picture {
// font color
p.c.SetSrc(image.White)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/zijiren233/go-text2picture

go 1.19
go 1.18

require (
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
Expand Down

0 comments on commit c56c64e

Please sign in to comment.