diff --git a/examples/font/main.go b/examples/font/main.go index 42eab57ce..5e1ca0023 100644 --- a/examples/font/main.go +++ b/examples/font/main.go @@ -38,6 +38,8 @@ var ( // text is a head part of a Japanese novel 山月記 (Sangetsuki) // See http://www.aozora.gr.jp/cards/000119/files/624_14544.html. var text = []string{ + "The quick brown fox jumps over the lazy dog.", + "", "隴西の李徴は博学才穎、天宝の末年、", "若くして名を虎榜に連ね、", "ついで江南尉に補せられたが、", @@ -79,8 +81,7 @@ func parseFont() error { d.DrawString(s) y += dy } - textImage.ReplacePixels(dst.Pix) - return nil + return textImage.ReplacePixels(dst.Pix) } func update(screen *ebiten.Image) error {