Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I'm generating "font textures" for a game, which are images containing rendered characters and a text files describing the rectangles of each character in the image. The game requires a plain font, and a shadowed and outlined font. To be able to get the size of each character, I'm generating an image for each character, and montaging them into the textures. The following are the commands I'm using:
The outline and shadow characters are not aligned correctly since I'm just trimming their images, while the plain font does not have this problem. Would generating the outline and shadow images using label: instead of -annotate be a good solution? How can I do it without writing multiple images for each character?
How can I make it avoid writing the intermediate outline.png and body.png and/or simplify the commands? I need to do this for over 1000 characters. I think I can use label: directly in the merging command, but I can't set different fill colors for each label, can I?
Yeah, I tried the -stroke option, but the result was ugly for Chinese/Japanese text. That page also says the method of shifted copies is better for fonts with very sharp edges.