Is This Content Helpful?
We're glad to know this article was helpful.
Resizing legend text with the Symbol Window Font Manager works permanently. Text size changes made to the legend with Avenue, however, revert to the original size when closing and reopening the project.
This is a known issue.
Reset the bounds for the LegendFrame with the SetBounds request. The example below demonstrates how to incorporate this request into a script that resizes legend text.
theLayout = av.GetActiveDoc
theGraphics = theLayout.GetGraphics
for each g in theGraphics
if (g.Is(LegendFrame)) then
oldrect = g.getbounds
oldrectorigin = oldrect.returnorigin
oldrectsize = oldrect.returnsize
theSymbols = g.ReturnSymbols
for each s in theSymbols
if (s.Is(TextSymbol)) then
oldtextsize = s.getsize
newpointsize = msgbox.input(
"Enter desired point text size","",oldtextsize.asstring)
conversionfactor = newpointsize.asnumber/oldtextsize
newrectsize = (oldrectsize*(conversionfactor@conversionfactor))
myrect = rect.make(oldrectorigin,newrectsize)