- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Often times text and attributes are contained within a shape or box. Generally in most cases the text is fine at a normal width factor of 1.00, but when you have overflow and need to adjust the width factor it really is a guess and check game to get something visually appealing.
Having a property that sets a maximum physical/visual length on the text object would save a lot of fumbling around with width factors.
The fit justification option of text often misses the mark because I never want a width factor larger than 1 and you also dont get the various other justification options.
So as long as the visual length of the text does not exceed the maximum set length (distance may be a better term) it should remain as width of 1.
If it Exceeds then automatically recalc the width factor so that the text stays within the max set distance.
I think basic formula would be:
MSL = maximum set length
CVL = current visual length
CWF current width factor
NWF = new width factor
NWF = 1.00
if (CVL > MSL)
{
NWF = MSL\CVL;
}
CWF = NWF
Im sure there's a hell of a lot more to it than that on the code side, but you get the picture.
This behavoir would be a massive help with attributed Title Blocks and could have many other uses as well.
Solved! Go to Solution.