Say, I want a 100 x 100 pixel image generated, and the argument is string of dynamic length. Now, the result image should have the supplied text in best-fit size in 100 x 100 area. It should be something like 'shrink to fit' option in MS Excel.
To complicate the matter, the string have formatting also, like font-family, oblique, and other text effects.
I'm struggling for it for 2 days now.
To complicate the matter, the string have formatting also, like font-family, oblique, and other text effects.
I'm struggling for it for 2 days now.