Now I want to put a string of text on an image. This requires a line break when the text is wrapped. However, after processing the line feed based on string truncation, the problem is, the text on each line is not aligned at both ends. I don't know how to solve this problem.
Now I want to put a string of text on an image. This requires a line break when the text is wrapped. However, after processing the line feed based on string truncation, the problem is, the text on each line is not aligned at both ends. I don't know how to solve this problem.
Reply content:
Now I want to put a string of text on an image. This requires a line break when the text is wrapped. However, after processing the line feed based on string truncation, the problem is, the text on each line is not aligned at both ends. I don't know how to solve this problem.
This is related to the font used. if it is a Chinese character, full-width characters should be used for punctuation! It is difficult to align the numbers with English!