Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to implement "best-fit" supplied text in a given region in image

$
0
0
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.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>