Finds the most appropriate font size to display a piece of Text in a picture box. Allows user to determine the Alignment of the text (Left, Right, Centre or Full justification). Options to include a drop-shadow, and the direction of the shadow are also included. Includes test form with example.
Inputs
TextToPicture(
Picture - Picture Box to fit text to
sString - the Text to fit
[Align] - optional Alignment
[Border]- optional border size (Twips)
[Shadow]- position of drop shadow
[ShadowColor] - colour of drop shadow
'
Returns
Boolean Return (False if unable to fit text into the Picture box)