This is a created article in which the information may have evolved or changed.
TODO: Change the font to go code
Image package implements a basic 2D image library, the package contains the basic interface called image, which contains color, this will be described in Image/color, new font fonts, font editing. As early as a few years ago go image package came out of someone to achieve the image-type watermark processing, processing is very convenient, interested friends can use search engines. The main function of this paper is to implement the watermark function by using the font of Golang image, and realize the font size, pixel and coordinate. Interested friends can copy to the local test to see. Because some of the platform code compatibility is not good, so the code is presented in a picture, you can contact me if necessary.
The original image of the test:
After the water is printed:
After many tests, Image/font and did not realize similar Chinese hieroglyphics (such as Japanese, Korean, Thai) are output baskets (such as), I hope that the official output of Golang as soon as possible, such as the folk have a Master hope to guide, greatly appreciated.
Wxgzh:ludong86