diff --git a/example/freetype/main.go b/example/freetype/main.go index 97c7271..4452286 100644 --- a/example/freetype/main.go +++ b/example/freetype/main.go @@ -69,12 +69,12 @@ func main() { // Read the font data. fontBytes, err := ioutil.ReadFile(*fontfile) if err != nil { - log.Stderr(err) + log.Println(err) return } font, err := freetype.ParseFont(fontBytes) if err != nil { - log.Stderr(err) + log.Println(err) return } @@ -106,7 +106,7 @@ func main() { for _, s := range text { _, err = c.DrawString(s, pt) if err != nil { - log.Stderr(err) + log.Println(err) return } pt.Y += c.PointToFix32(*size * *spacing) @@ -115,19 +115,19 @@ func main() { // Save that RGBA image to disk. f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } defer f.Close() b := bufio.NewWriter(f) err = png.Encode(b, rgba) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } err = b.Flush() if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } fmt.Println("Wrote out.png OK.") diff --git a/example/gamma/main.go b/example/gamma/main.go index c0c5521..9db9646 100644 --- a/example/gamma/main.go +++ b/example/gamma/main.go @@ -68,19 +68,19 @@ func main() { // Save that RGBA image to disk. f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } defer f.Close() b := bufio.NewWriter(f) err = png.Encode(b, rgba) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } err = b.Flush() if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } fmt.Println("Wrote out.png OK.") diff --git a/example/raster/main.go b/example/raster/main.go index 225f1c9..1e3d582 100644 --- a/example/raster/main.go +++ b/example/raster/main.go @@ -155,19 +155,19 @@ func main() { // Save that RGBA image to disk. f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } defer f.Close() b := bufio.NewWriter(f) err = png.Encode(b, rgba) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } err = b.Flush() if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } fmt.Println("Wrote out.png OK.") diff --git a/example/round/main.go b/example/round/main.go index 6f51d95..fb12785 100644 --- a/example/round/main.go +++ b/example/round/main.go @@ -80,19 +80,19 @@ func main() { // Save that RGBA image to disk. f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } defer f.Close() b := bufio.NewWriter(f) err = png.Encode(b, m) if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } err = b.Flush() if err != nil { - log.Stderr(err) + log.Println(err) os.Exit(1) } fmt.Println("Wrote out.png OK.") diff --git a/example/truetype/main.go b/example/truetype/main.go index c6cf935..3e0c005 100644 --- a/example/truetype/main.go +++ b/example/truetype/main.go @@ -43,12 +43,12 @@ func main() { fmt.Printf("Loading fontfile %q\n", *fontfile) b, err := ioutil.ReadFile(*fontfile) if err != nil { - log.Stderr(err) + log.Println(err) return } font, err := truetype.Parse(b) if err != nil { - log.Stderr(err) + log.Println(err) return } printBounds(font.Bounds()) @@ -61,7 +61,7 @@ func main() { g := truetype.NewGlyphBuf() err = g.Load(font, i0) if err != nil { - log.Stderr(err) + log.Println(err) return } fmt.Printf("'%c' glyph\n", c0)