1

I'm new to using PHP's GD library and I'd like to be able to resize (shrink/enlarge) my text to fit a certain width.

As an example, say I have a string, "Hello World". What is the easiest way to have this string resize itself to fit within a defined area (say 200px x 100px)? The size of the area for this text can change, so it would need to be dynamic and change the fontsize accordingly.

Not sure if I'm explaining this very well - but if someone could point me in the right direction that would be awesome!

William Orazi
  • 1,694
  • 6
  • 23
  • 36
  • possible duplicate of [Auto Font Size For Text (GD via PHP)](http://stackoverflow.com/questions/289850/auto-font-size-for-text-gd-via-php) – Pekka Sep 13 '13 at 12:54

0 Answers0