diff --git a/README b/README index 39b3d82..a0d70bc 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ The Freetype font rasterizer in the Go programming language. To download and install from source: -$ go get github.com/golang/freetype +$ go get github.com/tdewolff/freetype It is an incomplete port: * It only supports TrueType fonts, and not Type 1 fonts nor bitmap fonts. diff --git a/example/capjoin/main.go b/example/capjoin/main.go index 71f3356..4cc4f0f 100644 --- a/example/capjoin/main.go +++ b/example/capjoin/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -21,7 +21,7 @@ import ( "log" "os" - "github.com/golang/freetype/raster" + "github.com/tdewolff/freetype/raster" "golang.org/x/image/math/fixed" ) diff --git a/example/drawer/main.go b/example/drawer/main.go index d26d066..1c3d495 100644 --- a/example/drawer/main.go +++ b/example/drawer/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -24,7 +24,7 @@ import ( "math" "os" - "github.com/golang/freetype/truetype" + "github.com/tdewolff/freetype/truetype" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) diff --git a/example/freetype/main.go b/example/freetype/main.go index dfbde9a..4c817ad 100644 --- a/example/freetype/main.go +++ b/example/freetype/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -23,7 +23,7 @@ import ( "log" "os" - "github.com/golang/freetype" + "github.com/tdewolff/freetype" "golang.org/x/image/font" ) diff --git a/example/gamma/main.go b/example/gamma/main.go index cdd50bc..59fd1b3 100644 --- a/example/gamma/main.go +++ b/example/gamma/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -20,7 +20,7 @@ import ( "log" "os" - "github.com/golang/freetype/raster" + "github.com/tdewolff/freetype/raster" "golang.org/x/image/math/fixed" ) diff --git a/example/genbasicfont/main.go b/example/genbasicfont/main.go index 5b2f2bc..526cb4a 100644 --- a/example/genbasicfont/main.go +++ b/example/genbasicfont/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -26,7 +26,7 @@ import ( "strings" "unicode" - "github.com/golang/freetype/truetype" + "github.com/tdewolff/freetype/truetype" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) diff --git a/example/raster/main.go b/example/raster/main.go index 3e572e1..0eb5b7a 100644 --- a/example/raster/main.go +++ b/example/raster/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -21,7 +21,7 @@ import ( "log" "os" - "github.com/golang/freetype/raster" + "github.com/tdewolff/freetype/raster" "golang.org/x/image/math/fixed" ) diff --git a/example/round/main.go b/example/round/main.go index 2920e83..09dae99 100644 --- a/example/round/main.go +++ b/example/round/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -27,7 +27,7 @@ import ( "math" "os" - "github.com/golang/freetype/raster" + "github.com/tdewolff/freetype/raster" "golang.org/x/image/math/fixed" ) diff --git a/example/truetype/main.go b/example/truetype/main.go index e7db2d0..0fec191 100644 --- a/example/truetype/main.go +++ b/example/truetype/main.go @@ -5,7 +5,7 @@ // +build example // -// This build tag means that "go install github.com/golang/freetype/..." +// This build tag means that "go install github.com/tdewolff/freetype/..." // doesn't install this example program. Use "go run main.go" to run it or "go // install -tags=example" to install it. @@ -17,7 +17,7 @@ import ( "io/ioutil" "log" - "github.com/golang/freetype/truetype" + "github.com/tdewolff/freetype/truetype" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) diff --git a/freetype.go b/freetype.go index 9603586..f9f0e11 100644 --- a/freetype.go +++ b/freetype.go @@ -6,15 +6,15 @@ // The freetype package provides a convenient API to draw text onto an image. // Use the freetype/raster and freetype/truetype packages for lower level // control over rasterization and TrueType parsing. -package freetype // import "github.com/golang/freetype" +package freetype // import "github.com/tdewolff/freetype" import ( "errors" "image" "image/draw" - "github.com/golang/freetype/raster" - "github.com/golang/freetype/truetype" + "github.com/tdewolff/freetype/raster" + "github.com/tdewolff/freetype/truetype" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) diff --git a/raster/raster.go b/raster/raster.go index 7e6cd4e..7c8038e 100644 --- a/raster/raster.go +++ b/raster/raster.go @@ -13,7 +13,7 @@ // the Freetype "smooth" module, and the Anti-Grain Geometry library. A // description of the area/coverage algorithm is at // http://projects.tuxee.net/cl-vectors/section-the-cl-aa-algorithm -package raster // import "github.com/golang/freetype/raster" +package raster // import "github.com/tdewolff/freetype/raster" import ( "strconv" diff --git a/truetype/face.go b/truetype/face.go index 10f125f..b25e3c6 100644 --- a/truetype/face.go +++ b/truetype/face.go @@ -9,7 +9,7 @@ import ( "image" "math" - "github.com/golang/freetype/raster" + "github.com/tdewolff/freetype/raster" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) @@ -491,7 +491,6 @@ func (a *face) drawContour(ps []Point, dx, dy fixed.Int26_6) { if a.stroke == 0 { a.r.AddPath(path) } else { - path.Add1(start) a.r.AddStroke(path, a.stroke, raster.RoundCapper, raster.RoundJoiner) } } diff --git a/truetype/truetype.go b/truetype/truetype.go index 7270bbf..0bd9a6c 100644 --- a/truetype/truetype.go +++ b/truetype/truetype.go @@ -15,7 +15,7 @@ // // To measure a TrueType font in ideal FUnit space, use scale equal to // font.FUnitsPerEm(). -package truetype // import "github.com/golang/freetype/truetype" +package truetype // import "github.com/tdewolff/freetype/truetype" import ( "fmt"