Closed GoogleCodeExporter closed 9 years ago
It looks to me like JPEG encoding artifacts. Does the rest of your program use
image/jpeg anywhere? What does the image look like if you encode the rgba
variable to PNG at the end of the getImage function? Are you able to share your
full source code?
Your attached freetype-example.png file also looks like the text was rendered
at a smaller size and then scaled up. What's the value of your *imagewidth and
*imageheight flags?
Original comment by nigel...@golang.org
on 10 May 2015 at 11:18
That was it exactly! I was using jpeg encoding for a PNG image. After I changed
all references to the png package it now works perfectly. Thank you so much for
your quick and helpful reply!
Original comment by mryh...@gmail.com
on 11 May 2015 at 12:10
Original comment by nigel...@golang.org
on 11 May 2015 at 12:34
Original issue reported on code.google.com by
mryh...@gmail.com
on 10 May 2015 at 5:34Attachments: