diff --git a/examples/test/main.go b/examples/test/main.go index ff34f55..0103c6d 100644 --- a/examples/test/main.go +++ b/examples/test/main.go @@ -94,6 +94,8 @@ func main () { drawText(img, &setter, image.Rect(256, 0, 512, 256).Add(image.Pt(1536, 512)).Inset(4)) setter.SetAlign(typeset.AlignEven, typeset.AlignEnd) drawText(img, &setter, image.Rect( 0, 256, 256, 512).Add(image.Pt(1536, 512)).Inset(4)) + setter.SetAlign(typeset.AlignEnd, typeset.AlignMiddle) + drawText(img, &setter, image.Rect(256, 256, 512, 512).Add(image.Pt(1536, 512)).Inset(4)) file, err := os.Create("output.png") if err != nil { panic(err) } @@ -156,7 +158,7 @@ the sea welcomes me. This is a very long line that will probably get cut off.` const haikuAlt = `An ocean voyage. -As waves break over the bow, + As waves break over the bow, the sea welcomes me. This is a short ending`