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?".
4 posts • Page 1 of 1
Instead of rendering the actual characters to see if they can fit on one line we use the max advance metric instead which is a worst case scenario (most characters do not need the max advance width). Its faster but not as accurate as rendering the actual text and checking bounds. You of course can modify coders/caption.c to suit your needs.
ImageMagick grabs the metrics directly from the font file. We have no reason at this time to believe the metrics are unreliable. As suggested the problem is most likely simply that we speed up the process by using the max advance metric instead of using the slower method of getting the actual advance metric for each character.